moved user configuration to common
This commit is contained in:
parent
94ac2d581d
commit
54ecd6d24b
5 changed files with 131 additions and 130 deletions
|
@ -18,33 +18,23 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
users.groups.ester = {};
|
||||
users.users.ester = (
|
||||
if cfg.isFullUser
|
||||
then {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["networkmanager" "users"];
|
||||
|
||||
users.users.ester = lib.mkMerge [
|
||||
{
|
||||
uid = 1001;
|
||||
description = "Ester";
|
||||
group = "ester";
|
||||
hashedPasswordFile = config.sops.secrets."passwords/ester".path;
|
||||
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
bitwarden
|
||||
discord
|
||||
];
|
||||
}
|
||||
|
||||
(
|
||||
if cfg.isFullUser
|
||||
then {
|
||||
isNormalUser = true;
|
||||
extraGroups = ["networkmanager" "users"];
|
||||
|
||||
hashedPasswordFile = config.sops.secrets."passwords/ester".path;
|
||||
|
||||
packages = with pkgs; [
|
||||
firefox
|
||||
bitwarden
|
||||
discord
|
||||
];
|
||||
}
|
||||
else {
|
||||
isSystemUser = true;
|
||||
}
|
||||
)
|
||||
];
|
||||
else {
|
||||
isSystemUser = true;
|
||||
}
|
||||
);
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue