summaryrefslogtreecommitdiff
path: root/hosts/kay/modules
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/kay/modules')
-rw-r--r--hosts/kay/modules/sftp.nix13
1 files changed, 12 insertions, 1 deletions
diff --git a/hosts/kay/modules/sftp.nix b/hosts/kay/modules/sftp.nix
index 175a269..b969652 100644
--- a/hosts/kay/modules/sftp.nix
+++ b/hosts/kay/modules/sftp.nix
@@ -1,12 +1,23 @@
-{ ... }:
+{ config, ... }:
let
storage = "/hdd/users";
+ pubkeys = config.userdata.pubKeys;
in
{
users = {
groups."sftp".members = [];
+ users."sftp" = {
+ group = "sftp";
+ shell = "/run/current-system/sw/bin/nologin";
+ isNormalUser = true;
+ openssh.authorizedKeys.keys = [
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIFmA1dyV+o9gfoxlbVG0Y+dn3lVqdFs5fMqfxyNc5/Lr sftp@cez"
+ "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDCbgjAfyDNtLNyOS+sfLirYtfEAkGqV54LOwabpWkvf sftp@veu"
+ ] ++ pubkeys;
+ };
+
users."nazer" = {
group = "sftp";
shell = "/run/current-system/sw/bin/nologin";