aboutsummaryrefslogtreecommitdiff
path: root/modules/user/system
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-09 17:40:46 +0000
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2025-06-09 17:40:46 +0000
commita45c4551712c1ba5cb82eaf290f311ab0e8690e4 (patch)
treef62b23489fb31f8ea58fef77f99619efd784eb36 /modules/user/system
big changes
Diffstat (limited to 'modules/user/system')
-rw-r--r--modules/user/system/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/user/system/default.nix b/modules/user/system/default.nix
new file mode 100644
index 0000000..52d8116
--- /dev/null
+++ b/modules/user/system/default.nix
@@ -0,0 +1,25 @@
+{config, ...}: let
+ cfg = config.collinux.user;
+in {
+ users.users."${cfg.name}" = {
+ isNormalUser = true;
+ description = cfg.name;
+ extraGroups =
+ ["networkmanager" "disks"]
+ ++ (
+ if cfg.isAdmin
+ then ["wheel"]
+ else []
+ );
+ hashedPassword = cfg.password;
+ };
+
+ hjem.clobberByDefault = true;
+ hjem.users."${cfg.name}" = {
+ enable = true;
+ directory = "/home/${cfg.name}";
+ user = cfg.name;
+ };
+
+ security.sudo-rs.enable = true;
+}