configuration.nix/common/users/default.nix
2023-07-01 17:45:08 +05:30

23 lines
531 B
Nix

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