vars: fix default group on macOS

This commit is contained in:
Michael Hoang
2025-04-13 13:01:19 +02:00
parent d3e474bb4b
commit f4b8f2e858
2 changed files with 4 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ let
submodule =
module:
submoduleWith {
class = _class;
specialArgs.pkgs = pkgs;
modules = [ module ];
};

View File

@@ -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}$";