openssh runs in root, so authorized keys should be put there instead

nix-components
pegasust 2022-11-29 19:29:09 -07:00
parent 08d88874b6
commit cf4b4cf1e6
1 changed files with 3 additions and 0 deletions

View File

@ -30,6 +30,9 @@ with lib;
home = "/home/hungtr";
description = "pegasust/hungtr";
extraGroups = [ "wheel" "networkmanager" ];
};
users.users.root = {
# openssh runs in root, no? This is because port < 1024 requires root.
openssh.authorizedKeys.keys = lib.strings.splitString "\n" (builtins.readFile ../ssh/authorized_keys);
};