diff --git a/hosts/nixedo/configuration.nix b/hosts/nixedo/configuration.nix index 39421218..ccb72f3c 100644 --- a/hosts/nixedo/configuration.nix +++ b/hosts/nixedo/configuration.nix @@ -8,6 +8,7 @@ imports = [ ./hardware-configuration.nix ./secrets.nix + ./services.nix ./modules/acme.nix ../common @@ -48,12 +49,8 @@ users.groups.media = { }; - services.openssh.enable = true; - networking.firewall.allowedTCPPorts = [ 80 443 ]; - - services.caddy.enable = true; } diff --git a/hosts/nixedo/services.nix b/hosts/nixedo/services.nix new file mode 100644 index 00000000..273b8b2f --- /dev/null +++ b/hosts/nixedo/services.nix @@ -0,0 +1,6 @@ +{ + services = { + caddy.enable = true; + openssh.enable = true; + }; +}