2023-09-24 12:39:28 +02:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
isUserEnabled = builtins.elem "ronja" config.my.enabledUsers;
|
|
|
|
in {
|
2023-09-24 13:12:09 +02:00
|
|
|
config = lib.mkIf isUserEnabled {
|
|
|
|
# Define user account
|
|
|
|
users.users.ronja = {
|
|
|
|
isNormalUser = true;
|
|
|
|
name = "ronja";
|
|
|
|
description = "Ronja Spiegelberg";
|
|
|
|
home = "/home/ronja";
|
|
|
|
extraGroups = ["networkmanager" "wheel" "games"];
|
|
|
|
shell = pkgs.zsh;
|
|
|
|
};
|
|
|
|
};
|
2023-09-24 12:39:28 +02:00
|
|
|
}
|