diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-24 18:30:10 -0600 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2026-01-24 18:30:10 -0600 |
| commit | e5b58133c49d7c99f96de9f2354cd3f10ecbbf60 (patch) | |
| tree | 9044c382ce4fe55d7008ac99339f1be807c09095 /modules/services/nixos/ssh.nix | |
| parent | 548806184d9f9ebeb8e4ee60722860e0085874d2 (diff) | |
more ssh config
Diffstat (limited to 'modules/services/nixos/ssh.nix')
| -rw-r--r-- | modules/services/nixos/ssh.nix | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/modules/services/nixos/ssh.nix b/modules/services/nixos/ssh.nix index 76b0d87..23f8fc5 100644 --- a/modules/services/nixos/ssh.nix +++ b/modules/services/nixos/ssh.nix @@ -73,13 +73,10 @@ in { |> (builtins.filter (x: x != null)); users.users."root".openssh.authorizedKeys.keys = - if config.services.openssh.settings.PermitRootLogin == "prohibit-password" - then - hosts - |> (builtins.mapAttrs (_: data: data.user_pubkey or null)) - |> builtins.attrValues - |> (builtins.filter (x: x != null)) - else {}; + hosts + |> (builtins.mapAttrs (_: data: data.user_pubkey or null)) + |> builtins.attrValues + |> (builtins.filter (x: x != null)); # only possible over home network (:2222) systemd.services."openssh" = lib.mkIf config.collinux.services.networking.networkd.enable { after = lib.mkAfter ["network-online.target"]; |
