summaryrefslogtreecommitdiff
path: root/hosts/users.nix
diff options
context:
space:
mode:
authors <lol>2025-02-21 17:10:50 +0700
committers <lol>2025-02-21 17:10:50 +0700
commit7758e10d8fe1095ee77643f7248d94ed4235834b (patch)
treec51292fcae6238b6388d55f6e7a702305a0cfcf6 /hosts/users.nix
parentc0be55eb72fdad38de6e1c72a52b1500216c3043 (diff)
mac
Diffstat (limited to 'hosts/users.nix')
-rw-r--r--hosts/users.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/hosts/users.nix b/hosts/users.nix
index 3572fbc..a32407c 100644
--- a/hosts/users.nix
+++ b/hosts/users.nix
@@ -1,6 +1,7 @@
{
config,
pkgs,
+ lib,
...
}: let
shellAliases = {
@@ -33,9 +34,14 @@ in {
users = {
users = {
y = {
- group = "users";
+ createHome = true;
+ home = "/home/y";
+ shell = pkgs.fish;
+ } // (if !pkgs.stdenv.isDarwin then {
+ isSystemUser = false;
isNormalUser = true;
- extraGroups = [
+ group = "users";
+ extraGroups = (!pkgs.stdenv.isDarwin) [
"systemd-journal"
"wheel"
"networkmanager"
@@ -46,11 +52,9 @@ in {
"uinput"
"jellyfin"
];
- createHome = true;
- home = "/home/y";
- isSystemUser = false;
- shell = pkgs.fish;
- };
+ } else {});
};
};
}
+
+