configuration.nix/common/users/default.nix
2024-01-04 21:51:31 +05:30

27 lines
573 B
Nix

{ pkgs
, secrets
, ...
}:
let
users = 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
];
};
};
}