aboutsummaryrefslogtreecommitdiff
path: root/modules/user
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-09 19:43:34 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-09 19:43:34 +0000
commitf3b7a6a33588ad425de02c4b841df19f30733e44 (patch)
treeab6a8524350fda5868bf3f43187affbdb0895ce6 /modules/user
parenta45c4551712c1ba5cb82eaf290f311ab0e8690e4 (diff)
reorganize programs, move functions to library, and remove the rest of hyprland (all sway now)
Diffstat (limited to 'modules/user')
-rw-r--r--modules/user/system/default.nix14
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;
};