From e038eb08741a003dde903ffc5c12fa40cfcf1bf4 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Tue, 4 Jun 2024 21:14:28 +0530 Subject: os/server: init --- os/common/configuration.nix | 5 ----- os/dspace/configuration.nix | 1 + os/fscusat/configuration.nix | 1 + os/kay/configuration.nix | 1 + os/lia/configuration.nix | 1 + os/server/configuration.nix | 6 ++++++ 6 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 os/server/configuration.nix diff --git a/os/common/configuration.nix b/os/common/configuration.nix index 8c89efb..615dbed 100644 --- a/os/common/configuration.nix +++ b/os/common/configuration.nix @@ -29,11 +29,6 @@ in { loader.timeout = 1; }; - services.openssh = { - enable = true; - settings.PasswordAuthentication = false; - }; - programs.bash.promptInit = '' if [ "$UID" -ne 0 ]; then PROMPT_COLOR="1;32m" diff --git a/os/dspace/configuration.nix b/os/dspace/configuration.nix index 0bcf330..ccbdfdf 100644 --- a/os/dspace/configuration.nix +++ b/os/dspace/configuration.nix @@ -6,6 +6,7 @@ in { imports = [ ../common/configuration.nix + ../server/configuration.nix ./hardware-configuration.nix ./modules/network.nix diff --git a/os/fscusat/configuration.nix b/os/fscusat/configuration.nix index e515783..d7a8e43 100644 --- a/os/fscusat/configuration.nix +++ b/os/fscusat/configuration.nix @@ -3,6 +3,7 @@ { imports = [ ../common/configuration.nix + ../server/configuration.nix ./hardware-configuration.nix ./modules/network.nix diff --git a/os/kay/configuration.nix b/os/kay/configuration.nix index 24cc246..24cd50d 100644 --- a/os/kay/configuration.nix +++ b/os/kay/configuration.nix @@ -3,6 +3,7 @@ { imports = [ ../common/configuration.nix + ../server/configuration.nix ./hardware-configuration.nix ./modules/network.nix diff --git a/os/lia/configuration.nix b/os/lia/configuration.nix index ab4c46b..64204a0 100644 --- a/os/lia/configuration.nix +++ b/os/lia/configuration.nix @@ -3,6 +3,7 @@ { imports = [ ../common/configuration.nix + ../server/configuration.nix ./hardware-configuration.nix ./modules/network diff --git a/os/server/configuration.nix b/os/server/configuration.nix new file mode 100644 index 0000000..8b1e5e9 --- /dev/null +++ b/os/server/configuration.nix @@ -0,0 +1,6 @@ +{ ... }: { + services.openssh = { + enable = true; + settings.PasswordAuthentication = false; + }; +} -- cgit v1.2.3