diff options
| author | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-06-09 19:43:34 +0000 |
|---|---|---|
| committer | Collin Williams <96917990+bluedragon1221@users.noreply.github.com> | 2025-06-09 19:43:34 +0000 |
| commit | f3b7a6a33588ad425de02c4b841df19f30733e44 (patch) | |
| tree | ab6a8524350fda5868bf3f43187affbdb0895ce6 /modules/user/system | |
| parent | a45c4551712c1ba5cb82eaf290f311ab0e8690e4 (diff) | |
reorganize programs, move functions to library, and remove the rest of hyprland (all sway now)
Diffstat (limited to 'modules/user/system')
| -rw-r--r-- | modules/user/system/default.nix | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/modules/user/system/default.nix b/modules/user/system/default.nix index 52d8116..dad00e0 100644 --- a/modules/user/system/default.nix +++ b/modules/user/system/default.nix @@ -1,16 +1,14 @@ -{config, ...}: let +{ + config, + lib, + ... +}: let cfg = config.collinux.user; in { users.users."${cfg.name}" = { isNormalUser = true; description = cfg.name; - extraGroups = - ["networkmanager" "disks"] - ++ ( - if cfg.isAdmin - then ["wheel"] - else [] - ); + extraGroups = ["networkmanager" "disks"] ++ (lib.optional cfg.isAdmin "wheel"); hashedPassword = cfg.password; }; |
