aboutsummaryrefslogtreecommitdiff
path: root/modules/services/nixos/openssh.nix
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/nixos/openssh.nix')
-rw-r--r--modules/services/nixos/openssh.nix9
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 = {