configuration.nix/common/users/default.nix
2024-03-23 15:53:30 +05:30

27 lines
575 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" "libvirtd" "networkmanager" "tss" "wheel" ];
shell = pkgs.zsh;
openssh.authorizedKeys.keys = [
users.primary.sshPublicKey
secrets.phone.sshPublicKey
];
};
};
}