configuration.nix/common/users/default.nix

27 lines
564 B
Nix

{ pkgs
, secrets
, ...
}:
let
inherit (secrets) users;
in
{
users.mutableUsers = false;
users.users = {
root = {
inherit (users.root) hashedPassword;
};
"${users.primary.userName}" = {
uid = 1000;
inherit (users.primary) hashedPassword;
description = users.primary.realName;
isNormalUser = true;
extraGroups = [ "docker" "networkmanager" "tss" "wheel" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
users.primary.sshPublicKey
secrets.phone.sshPublicKey
];
};
};
}