nixos/machines/Sheol/august.nix
2024-11-16 11:21:12 +01:00

24 lines
563 B
Nix

{ ... }:
{
users.users.august = {
isNormalUser = true;
createHome = false;
};
services.openssh.extraConfig = ''
Match User august
AllowUsers august
PermitEmptyPasswords yes
ChrootDirectory /home/august
ForceCommand internal-sftp
'';
sops.secrets."users/august/publicKey" = {
path = "/etc/ssh/authorized_keys.d/august";
mode = "444";
};
fileSystems."/home/august/Videos" = {
device = "/mnt/WD/Videos/Movies/";
options = [ "nofail" "bind" "x-systemd.automount" ];
neededForBoot = false;
};
}