diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-06-09 23:42:37 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-06-10 16:18:27 +0530 |
| commit | 279241632b566fd26011409672277ca02ed697d1 (patch) | |
| tree | 67e6be0ff46224ec7ba8085866ff0aef77420d46 /modules/network/ssh.nix | |
| parent | 3dd4a84724190d318a960cec67077d91f4556910 (diff) | |
| download | homeserver-nixos-config-279241632b566fd26011409672277ca02ed697d1.tar.gz homeserver-nixos-config-279241632b566fd26011409672277ca02ed697d1.zip | |
Refactor config to settings.nix and settings.private.nix
Diffstat (limited to '')
| -rw-r--r-- | modules/network/ssh.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/modules/network/ssh.nix b/modules/network/ssh.nix index 573bdf4..f5564bd 100644 --- a/modules/network/ssh.nix +++ b/modules/network/ssh.nix @@ -1,11 +1,12 @@ { lib, ... }: let - private = import ../../config.private.nix; -in { + settings = import ../../settings.nix { inherit lib; }; +in +{ services.sshd.enable = true; # Auth - users.users.bacchus.openssh.authorizedKeys.keys = private.ssh.authorizedKeys; + users.users.bacchus.openssh.authorizedKeys.keys = settings.ssh.authorizedKeys; services.openssh.settings = { PermitRootLogin = "no"; PasswordAuthentication = false; |
