refactor(darwin): move tailscale to module

This commit is contained in:
Mohammad Rafiq 2025-07-14 00:09:24 +08:00
parent 79eec8b971
commit cd984132ee
No known key found for this signature in database
2 changed files with 3 additions and 10 deletions

View file

@ -41,16 +41,6 @@ let
specialArgs = { inherit (config.flake) self; };
modules = [
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

View file

@ -14,4 +14,7 @@ in
persistDirs = [ "/var/lib/tailscale" ];
sops.secrets."tailscale/client-secret".sopsFile = secrets + "/tailscale.yaml";
};
flake.modules.darwin.default = {
services.tailscale.enable = true;
};
}