21 lines
409 B
Nix
21 lines
409 B
Nix
{...}: {
|
|
flake.nixosModules.tailscale-service = {
|
|
config,
|
|
lib,
|
|
...
|
|
}: {
|
|
options = {
|
|
host.tailscale = {
|
|
enable = lib.mkEnableOption "should tailscale be enabled on this computer";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf config.services.tailscale.enable (
|
|
lib.mkMerge [
|
|
{
|
|
# any configs we want shared between all machines
|
|
}
|
|
]
|
|
);
|
|
};
|
|
}
|