configuration.nix/common/users/default.nix

28 lines
567 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ pkgs
, secrets
, ...
}:
let
2023-07-01 17:45:08 +05:30
user = secrets.users;
2023-11-04 16:12:45 +05:30
in
{
2023-03-15 22:11:59 +05:30
users.mutableUsers = false;
users.users = {
2023-07-11 22:41:18 +05:30
root = {
inherit (user.root) hashedPassword;
};
2023-03-15 22:11:59 +05:30
"${user.primary.userName}" = {
uid = 1000;
2023-07-11 22:41:18 +05:30
inherit (user.primary) hashedPassword;
2023-03-15 22:11:59 +05:30
description = user.primary.realName;
isNormalUser = true;
2023-11-04 16:12:45 +05:30
extraGroups = [ "docker" "libvirtd" "networkmanager" "tss" "wheel" ];
2023-03-15 22:11:59 +05:30
shell = pkgs.zsh;
2023-04-10 23:07:22 +05:30
openssh.authorizedKeys.keys = [
user.primary.sshPublicKey
2023-10-11 12:32:00 +05:30
secrets.phone.sshPublicKey
2023-04-10 23:07:22 +05:30
];
2023-03-15 22:11:59 +05:30
};
};
}