diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-29 06:54:49 -0500 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-07-29 06:54:49 -0500 |
| commit | e29dd8a2283399b7e046937340509d5aec4b52ba (patch) | |
| tree | aa679e70fe55cb620698ab1695eadf23f8a2cdba /modules/services/nixos/openssh.nix | |
| parent | d2aecd69c17fa64305c07333686576152432993d (diff) | |
changes
Diffstat (limited to 'modules/services/nixos/openssh.nix')
| -rw-r--r-- | modules/services/nixos/openssh.nix | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/services/nixos/openssh.nix b/modules/services/nixos/openssh.nix index 1d7834b..4826369 100644 --- a/modules/services/nixos/openssh.nix +++ b/modules/services/nixos/openssh.nix @@ -5,7 +5,6 @@ ... }: let cfg = config.collinux.services.sshd; - pure = x: [x]; authorizedKeys = @@ -30,11 +29,7 @@ in { }; settings = { - PermitRootLogin = - if cfg.conf.rootLogin - then "yes" - else "no"; - + PermitRootLogin = "yes"; PasswordAuthentication = false; KbdInteractiveAuthentication = false; PubkeyAuthentication = true; @@ -43,7 +38,7 @@ in { users.users = { ${config.collinux.user.name}.openssh.authorizedKeys.keys = authorizedKeys; - root.openssh.authorizedKeys.keys = lib.mkIf cfg.conf.rootLogin authorizedKeys; + root.openssh.authorizedKeys.keys = authorizedKeys; }; systemd.services.openssh = { |
