Add new machine Sheol.
This commit is contained in:
parent
4da68279f4
commit
0b1b8b6acb
9 changed files with 246 additions and 0 deletions
24
machines/Sheol/august.nix
Normal file
24
machines/Sheol/august.nix
Normal file
|
@ -0,0 +1,24 @@
|
|||
{ ... }:
|
||||
|
||||
{
|
||||
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;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue