This commit is contained in:
Henri Dohmen 2025-05-30 22:46:27 +02:00
parent a992a7b701
commit b61bb970a5
30 changed files with 69 additions and 34 deletions

27
host/users.nix Normal file
View file

@ -0,0 +1,27 @@
{
pkgs,
lib,
options,
var,
...
}:
{
users = {
mutableUsers = false;
users."hd" = {
description = "Henri";
isNormalUser = true;
createHome = true;
home = "/home/hd";
extraGroups = [ "wheel" ];
shell = pkgs.fish;
packages = [ ];
openssh.authorizedKeys.keys = var.ssh-keys.unprivileged;
hashedPassword = "$y$jDT$dhvO.xqs8mopz.sFFul.q/$ud5642o7CnVetU6QEu0ctiVMFh7ngZznDf0wp4cXos8";
};
users.root = {
hashedPassword = "!";
openssh.authorizedKeys.keys = var.ssh-keys.priviliged;
};
};
}