From 5718df21a5e980433c7849343ee6a08223b9c6bc Mon Sep 17 00:00:00 2001 From: Alexander Heldt Date: Mon, 16 Oct 2023 22:30:17 +0200 Subject: [PATCH] pinwheel: Move `openssh` service to `ssh` module --- hosts/pinwheel/configuration.nix | 10 ---------- hosts/pinwheel/modules/ssh/default.nix | 9 +++++++++ 2 files changed, 9 insertions(+), 10 deletions(-) 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"; + }]; + }; }