configuration.nix/common/users/default.nix

28 lines
575 B
Nix
Raw Normal View History

2023-11-04 16:12:45 +05:30
{ pkgs
, secrets
, ...
}:
let
2024-02-04 18:37:01 +05:30
inherit (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 = {
2024-01-04 21:51:31 +05:30
inherit (users.root) hashedPassword;
2023-07-11 22:41:18 +05:30
};
2024-01-04 21:51:31 +05:30
"${users.primary.userName}" = {
2023-03-15 22:11:59 +05:30
uid = 1000;
2024-01-04 21:51:31 +05:30
inherit (users.primary) hashedPassword;
description = users.primary.realName;
2023-03-15 22:11:59 +05:30
isNormalUser = true;
2024-03-23 15:53:21 +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 = [
2024-01-04 21:51:31 +05:30
users.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
};
};
}