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/";
|
2024-11-20 20:32:38 +01:00
|
|
|
options = [
|
|
|
|
"nofail"
|
|
|
|
"bind"
|
|
|
|
"x-systemd.automount"
|
|
|
|
];
|
2024-11-15 21:58:10 +01:00
|
|
|
neededForBoot = false;
|
|
|
|
};
|
|
|
|
}
|