aboutsummaryrefslogtreecommitdiff
path: root/modules/network/ssh.nix
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-06-09 23:42:37 +0530
committerAkshay Nair <phenax5@gmail.com>2025-06-10 16:18:27 +0530
commit279241632b566fd26011409672277ca02ed697d1 (patch)
tree67e6be0ff46224ec7ba8085866ff0aef77420d46 /modules/network/ssh.nix
parent3dd4a84724190d318a960cec67077d91f4556910 (diff)
downloadhomeserver-nixos-config-279241632b566fd26011409672277ca02ed697d1.tar.gz
homeserver-nixos-config-279241632b566fd26011409672277ca02ed697d1.zip
Refactor config to settings.nix and settings.private.nix
Diffstat (limited to 'modules/network/ssh.nix')
-rw-r--r--modules/network/ssh.nix7
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;