diff --git a/modules/security.nix b/hosts/common/security.nix similarity index 100% rename from modules/security.nix rename to hosts/common/security.nix diff --git a/hosts/common/tailscale.nix b/hosts/common/tailscale.nix new file mode 100644 index 0000000..f3da6a4 --- /dev/null +++ b/hosts/common/tailscale.nix @@ -0,0 +1,8 @@ +{ + pkgs, + ... +}: { + services.tailscale = { + enable = true; + }; +} diff --git a/hosts/hime/default.nix b/hosts/hime/default.nix index 9cb9d8f..f6e64c7 100644 --- a/hosts/hime/default.nix +++ b/hosts/hime/default.nix @@ -4,6 +4,8 @@ imports = [ ./hardware-configuration.nix + ../common/tailscale.nix + ../common/security.nix ]; boot.loader = { @@ -41,9 +43,9 @@ services.openssh = { enable = true; - settings = { - PasswordAuthentication = true; - KbdInteractiveAuthentication = false; + settings = { + PasswordAuthentication = true; + KbdInteractiveAuthentication = false; }; }; diff --git a/hosts/sutakku/default.nix b/hosts/sutakku/default.nix index 5cddaff..c1a9942 100644 --- a/hosts/sutakku/default.nix +++ b/hosts/sutakku/default.nix @@ -4,6 +4,8 @@ imports = [ ./hardware-configuration.nix + ../common/tailscale.nix + ../common/security.nix ]; boot.loader = { diff --git a/hosts/tsuki/default.nix b/hosts/tsuki/default.nix index a55c068..c575702 100755 --- a/hosts/tsuki/default.nix +++ b/hosts/tsuki/default.nix @@ -5,7 +5,8 @@ [ ./hardware-configuration.nix ../../modules/home/wayland - ../../modules/security.nix + ../common/security.nix + ../common/tailscale.nix ]; # bootloader diff --git a/modules/common.nix b/modules/common.nix index 6c248f3..acb8c0f 100644 --- a/modules/common.nix +++ b/modules/common.nix @@ -9,4 +9,5 @@ ./home/git ./home/lazygit ]; + } \ No newline at end of file