mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 18:40:14 +01:00
21 lines
406 B
Nix
21 lines
406 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
isUserEnabled = builtins.elem "ronja" config.my.enabledUsers;
|
|
in {
|
|
config = lib.mkIf isUserEnabled {
|
|
# Define user account
|
|
users.users.ronja = {
|
|
isNormalUser = true;
|
|
name = "ronja";
|
|
description = "Ronja";
|
|
home = "/home/ronja";
|
|
extraGroups = ["networkmanager" "wheel" "games" "podman"];
|
|
shell = pkgs.zsh;
|
|
};
|
|
};
|
|
}
|