summaryrefslogtreecommitdiff
path: root/hosts/users.nix
diff options
context:
space:
mode:
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 {});
};
};
}
+
+