diff options
Diffstat (limited to 'hosts/poweredge-pro/fileshares.nix')
| -rw-r--r-- | hosts/poweredge-pro/fileshares.nix | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/hosts/poweredge-pro/fileshares.nix b/hosts/poweredge-pro/fileshares.nix index 9d68e3d..0170918 100644 --- a/hosts/poweredge-pro/fileshares.nix +++ b/hosts/poweredge-pro/fileshares.nix @@ -1,4 +1,4 @@ -{ config, ... }: { +{ pkgs, config, ... }: { # Configure services services._fileShares = { enable = true; @@ -73,6 +73,14 @@ hashedPasswordFile = config.sops.secrets.user-hashed-pass.path; uid = 3003; }; + users.users.zfsbackup = { + isSystemUser = true; + group = "zfsbackup"; + shell = pkgs.bashInteractive; + hashedPassword = "!"; # Disallow login through standard means + openssh.authorizedKeys.keyFiles = [ ./resources/openssh/zfsbackup/truenas-10.0.0.9-rsa.pub ]; + }; + users.groups.zfsbackup = {}; # Configure user enrollment for samba services._fileShares.smb.enrollUsers = { |
