diff --git a/nixosModules/clanCore/vars/default.nix b/nixosModules/clanCore/vars/default.nix index 295f734df..ccbe5fe71 100644 --- a/nixosModules/clanCore/vars/default.nix +++ b/nixosModules/clanCore/vars/default.nix @@ -10,6 +10,7 @@ let submodule = module: submoduleWith { + class = _class; specialArgs.pkgs = pkgs; modules = [ module ]; }; diff --git a/nixosModules/clanCore/vars/interface.nix b/nixosModules/clanCore/vars/interface.nix index b154f7f17..611f757ef 100644 --- a/nixosModules/clanCore/vars/interface.nix +++ b/nixosModules/clanCore/vars/interface.nix @@ -1,4 +1,5 @@ { + _class, lib, config, pkgs, @@ -271,7 +272,8 @@ in }; group = lib.mkOption { description = "The group name or id that will own the file."; - default = "root"; + default = if _class == "darwin" then "wheel" else "root"; + defaultText = lib.literalExpression ''if _class == "darwin" then "wheel" else "root"''; }; mode = lib.mkOption { type = lib.types.strMatching "^[0-7]{3}$";