19 lines
322 B
Nix
19 lines
322 B
Nix
{
|
|
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
|
|
}
|
|
]
|
|
);
|
|
}
|