diff options
author | polwex <code@yago.one> | 2025-02-21 10:30:15 +0000 |
---|---|---|
committer | polwex <code@yago.one> | 2025-02-21 10:30:15 +0000 |
commit | 266bcb770323b5d461347fbdc83e43296cb18d34 (patch) | |
tree | 1a68ef41860b79f6566f61065be465f7afa7386a /hosts/users.nix | |
parent | c0be55eb72fdad38de6e1c72a52b1500216c3043 (diff) | |
parent | c758310626204f21fcddda5334e79d645b2dca2e (diff) |
Merge pull request 'mac2' (#3) from mac2 into master
Reviewed-on: https://git.sortug.com/polwex/nixconf/pulls/3
Diffstat (limited to 'hosts/users.nix')
-rw-r--r-- | hosts/users.nix | 18 |
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 {}); }; }; } + + |