diff options
author | sinanmohd <sinan@sinanmohd.com> | 2024-01-08 23:09:42 +0530 |
---|---|---|
committer | sinanmohd <sinan@sinanmohd.com> | 2024-01-08 23:29:53 +0530 |
commit | f8cea6f6c8a8ce35533d7fa978dbff8cd5427b7c (patch) | |
tree | b87d5da18c6f86d3a931a88370f41421833e9814 /hosts/kay/modules/sftp.nix | |
parent | 119d8d504f435b552e548a9130ae96a2a3721dff (diff) |
modules/userdata: refactor
Diffstat (limited to 'hosts/kay/modules/sftp.nix')
-rw-r--r-- | hosts/kay/modules/sftp.nix | 5 |
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" = { |