Sheol: remove jail and add borg for august
This commit is contained in:
parent
9d0c73b776
commit
b666e4ad13
1 changed files with 21 additions and 11 deletions
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue