From f3b7a6a33588ad425de02c4b841df19f30733e44 Mon Sep 17 00:00:00 2001 From: Collin Williams <96917990+bluedragon1221@users.noreply.github.com> Date: Mon, 9 Jun 2025 19:43:34 +0000 Subject: reorganize programs, move functions to library, and remove the rest of hyprland (all sway now) --- modules/user/system/default.nix | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'modules/user/system/default.nix') 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; }; -- cgit v1.3.1