refactor(darwin): move tailscale to module
This commit is contained in:
parent
79eec8b971
commit
cd984132ee
2 changed files with 3 additions and 10 deletions
|
@ -41,16 +41,6 @@ let
|
||||||
specialArgs = { inherit (config.flake) self; };
|
specialArgs = { inherit (config.flake) self; };
|
||||||
modules = [
|
modules = [
|
||||||
cfg.modules.darwin.default
|
cfg.modules.darwin.default
|
||||||
(
|
|
||||||
{ pkgs, ... }:
|
|
||||||
{
|
|
||||||
environment.systemPackages = [ pkgs.vim ];
|
|
||||||
services.tailscale.enable = true;
|
|
||||||
nix.settings.experimental-features = "nix-command flakes";
|
|
||||||
nix.enable = false;
|
|
||||||
nixpkgs.hostPlatform = "x86_64-darwin";
|
|
||||||
}
|
|
||||||
)
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
@ -14,4 +14,7 @@ in
|
||||||
persistDirs = [ "/var/lib/tailscale" ];
|
persistDirs = [ "/var/lib/tailscale" ];
|
||||||
sops.secrets."tailscale/client-secret".sopsFile = secrets + "/tailscale.yaml";
|
sops.secrets."tailscale/client-secret".sopsFile = secrets + "/tailscale.yaml";
|
||||||
};
|
};
|
||||||
|
flake.modules.darwin.default = {
|
||||||
|
services.tailscale.enable = true;
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue