nixos/machines/Sheol/august.nix

29 lines
585 B
Nix
Raw Normal View History

2024-11-15 21:58:10 +01:00
{ ... }:
{
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"
];
2024-11-15 21:58:10 +01:00
neededForBoot = false;
};
}