users: set the correct attributes for authorized keyfiles

This commit is contained in:
Gabriel Arazas 2022-11-28 00:41:27 +08:00
parent 918d450134
commit 7f87ee09c4
2 changed files with 8 additions and 3 deletions

View File

@ -9,9 +9,9 @@
isNormalUser = true;
extraGroups = [ "wheel" ];
useDefaultShell = true;
openssh.authorizedKeys.keys = [
(lib.readFile ../../home-manager/foo-dogsquared/user-key.pub)
(lib.readFile ../../../hosts/ni/host-key.pub)
openssh.authorizedKeys.keyFiles = [
../../home-manager/foo-dogsquared/user-key.pub
../../../hosts/ni/host-key.pub
];
};

View File

@ -8,5 +8,10 @@
useDefaultShell = true;
isNormalUser = true;
description = "The go-to user for server systems.";
openssh.authorizedKeys.keyFiles = [
../../home-manager/foo-dogsquared/user-key.pub
../../../hosts/ni/host-key.pub
];
};
}