From 817b9756f434dcca03b2075dd574ea494bcdbfcb Mon Sep 17 00:00:00 2001 From: Ahwx Date: Thu, 20 Mar 2025 14:28:57 +0100 Subject: [PATCH] feat: move to server-specific defaults --- hosts/dandelion/default.nix | 2 +- hosts/violet/default.nix | 2 +- modules/core/default.server.nix | 12 ++++++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) create mode 100644 modules/core/default.server.nix diff --git a/hosts/dandelion/default.nix b/hosts/dandelion/default.nix index 9f60ae9..bb2c56c 100644 --- a/hosts/dandelion/default.nix +++ b/hosts/dandelion/default.nix @@ -2,7 +2,7 @@ { imports = [ ./hardware-configuration.nix - ./../../modules/core/default.dandelion.nix + ./../../modules/core/default.server.nix ]; networking.hostName = "dandelion"; diff --git a/hosts/violet/default.nix b/hosts/violet/default.nix index df62967..2d9b649 100644 --- a/hosts/violet/default.nix +++ b/hosts/violet/default.nix @@ -2,7 +2,7 @@ { imports = [ ./hardware-configuration.nix - ./../../modules/core/default.violet.nix + ./../../modules/core/default.server.nix ./../../modules/services/violet.nix ]; diff --git a/modules/core/default.server.nix b/modules/core/default.server.nix new file mode 100644 index 0000000..118f8a3 --- /dev/null +++ b/modules/core/default.server.nix @@ -0,0 +1,12 @@ +{ ... }: +{ + imports = + [(import ./hardware.nix)] + ++ [(import ./network.nix)] + ++ [(import ./program.nix)] + ++ [(import ./sshd.nix)] + ++ [(import ./security.nix)] + ++ [(import ./services.nix)] + ++ [(import ./system.nix)] + ++ [(import ./user.nix)]; +}