From b6a842535388dcd986eb33e71d46a5ca7698b235 Mon Sep 17 00:00:00 2001 From: notohh Date: Wed, 1 Mar 2023 03:47:59 -0500 Subject: [PATCH] feat: init tailscale --- {modules => hosts/common}/security.nix | 0 hosts/common/tailscale.nix | 8 ++++++++ hosts/hime/default.nix | 8 +++++--- hosts/sutakku/default.nix | 2 ++ hosts/tsuki/default.nix | 3 ++- modules/common.nix | 1 + 6 files changed, 18 insertions(+), 4 deletions(-) rename {modules => hosts/common}/security.nix (100%) create mode 100644 hosts/common/tailscale.nix 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