porthos: add 'blog' user
This commit is contained in:
parent
926f4a144f
commit
ed0381de32
|
@ -7,5 +7,6 @@
|
||||||
./hardware.nix
|
./hardware.nix
|
||||||
./networking.nix
|
./networking.nix
|
||||||
./services.nix
|
./services.nix
|
||||||
|
./users.nix
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
15
porthos/users.nix
Normal file
15
porthos/users.nix
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
# User setup
|
||||||
|
{ config, ... }:
|
||||||
|
let
|
||||||
|
my = config.my;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
users.users.blog = {
|
||||||
|
description = "Blog Publisher";
|
||||||
|
isNormalUser = true;
|
||||||
|
group = "nginx";
|
||||||
|
createHome = true; # Ensures correct permissions
|
||||||
|
home = "/var/www/";
|
||||||
|
openssh.authorizedKeys.keys = [ my.secrets.drone.ssh.publicKey ];
|
||||||
|
};
|
||||||
|
}
|
Loading…
Reference in a new issue