porthos: add 'blog' user

This commit is contained in:
Bruno BELANYI 2021-02-07 22:07:20 +00:00
parent 926f4a144f
commit ed0381de32
2 changed files with 16 additions and 0 deletions

View file

@ -7,5 +7,6 @@
./hardware.nix
./networking.nix
./services.nix
./users.nix
];
}

15
porthos/users.nix Normal file
View 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 ];
};
}