diff --git a/hosts/pinwheel/configuration.nix b/hosts/pinwheel/configuration.nix index dbf1957..c944a2b 100644 --- a/hosts/pinwheel/configuration.nix +++ b/hosts/pinwheel/configuration.nix @@ -104,16 +104,6 @@ liberation_ttf ]; - # Enable the OpenSSH daemon. - services.openssh = { - enable = true; - - hostKeys = [{ - path = "/etc/ssh/pinwheel"; - type = "ed25519"; - }]; - }; - config-manager.flakePath = "/home/alex/config"; mod = { diff --git a/hosts/pinwheel/modules/ssh/default.nix b/hosts/pinwheel/modules/ssh/default.nix index 4c6107b..bc7d665 100644 --- a/hosts/pinwheel/modules/ssh/default.nix +++ b/hosts/pinwheel/modules/ssh/default.nix @@ -68,4 +68,13 @@ group = "users"; }; }; + + services.openssh = { + enable = true; + + hostKeys = [{ + path = "/etc/ssh/pinwheel"; + type = "ed25519"; + }]; + }; }