Sheol: remove jail and add borg for august

This commit is contained in:
Kevin Baensch 2024-12-31 15:23:31 +01:00
parent 9d0c73b776
commit b666e4ad13
Signed by: derped
GPG key ID: C0F1D326C7626543

View file

@ -1,28 +1,38 @@
{ ... }:
{ pkgs, ... }:
{
users.users.august = {
isNormalUser = true;
createHome = false;
packages = [ pkgs.borgbackup ];
};
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;
fileSystems = {
"/home/august/Videos" = {
device = "/mnt/WD/Videos/";
options = [
"nofail"
"bind"
"x-systemd.automount"
];
neededForBoot = false;
};
"/home/august/Backups" = {
device = "/mnt/WD/august/Backups";
options = [
"nofail"
"bind"
"x-systemd.automount"
];
neededForBoot = false;
};
};
}