summaryrefslogtreecommitdiff
path: root/hosts/kay
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/kay')
-rw-r--r--hosts/kay/modules/sftp.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/hosts/kay/modules/sftp.nix b/hosts/kay/modules/sftp.nix
index b969652..07b1449 100644
--- a/hosts/kay/modules/sftp.nix
+++ b/hosts/kay/modules/sftp.nix
@@ -2,7 +2,8 @@
let
storage = "/hdd/users";
- pubkeys = config.userdata.pubKeys;
+ user = config.userdata.user;
+ pubKeys = config.users.users.${user}.openssh.authorizedKeys.keys;
in
{
users = {
@@ -15,7 +16,7 @@ in
openssh.authorizedKeys.keys = [
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFmA1dyV+o9gfoxlbVG0Y+dn3lVqdFs5fMqfxyNc5/Lr sftp@cez"
"ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDCbgjAfyDNtLNyOS+sfLirYtfEAkGqV54LOwabpWkvf sftp@veu"
- ] ++ pubkeys;
+ ] ++ pubKeys;
};
users."nazer" = {