restructure system to be toggable
This commit is contained in:
@@ -1,10 +1,16 @@
|
||||
{ config, pkgs, ... }:
|
||||
|
||||
{
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
options = {
|
||||
modules.system.tailscale.enable = lib.mkEnableOption "enables tailscale";
|
||||
};
|
||||
|
||||
useRoutingFeatures = "both";
|
||||
authKeyFile = "/home/blake/.nix/.keyring/tailscale/authkey";
|
||||
config = lib.mkIf config.modules.system.tailscale.enable {
|
||||
services.tailscale = {
|
||||
enable = true;
|
||||
|
||||
useRoutingFeatures = "both";
|
||||
authKeyFile = "/home/blake/.nix/.keyring/tailscale/authkey";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user