diff --git a/hosts/juri/host.nix b/hosts/juri/host.nix index 4f30a2f..192639b 100644 --- a/hosts/juri/host.nix +++ b/hosts/juri/host.nix @@ -71,5 +71,6 @@ in { shell.enabledShells = [ "fish" ]; shell.defaultShell = "fish"; + tailscale.enable = true; sshd.enable = true; } diff --git a/hosts/onizuka/host.nix b/hosts/onizuka/host.nix index c48f020..d2dbc49 100644 --- a/hosts/onizuka/host.nix +++ b/hosts/onizuka/host.nix @@ -13,6 +13,7 @@ system.users.bigWheels = [ "pan" ]; sshd.enable = true; + tailscale.enable = true; tuigreet.enable = true; niri.enable = true; diff --git a/nixosModules/services/tailscale/service.nix b/nixosModules/services/tailscale/service.nix new file mode 100644 index 0000000..cd94ad8 --- /dev/null +++ b/nixosModules/services/tailscale/service.nix @@ -0,0 +1,11 @@ +{ config, pkgs, lib, ... }: + +{ + options.tailscale = { + enable = lib.mkEnableOption "enables tailscale"; + }; + + config = lib.mkIf config.tailscale.enable { + services.tailscale.enable = true; + }; +}