mirror of
https://github.com/LnL7/nix-darwin.git
synced 2024-12-14 11:57:34 +00:00
Merge pull request #724 from Enzime/fix/darwin-builder
linux-builder: fix evaluation errors
This commit is contained in:
commit
4e3fc18647
1 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ let
|
|||
cfg = config.nix.linux-builder;
|
||||
|
||||
builderWithOverrides = cfg.package.override {
|
||||
modules = [ cfg.modules ];
|
||||
inherit (cfg) modules;
|
||||
};
|
||||
in
|
||||
|
||||
|
@ -46,7 +46,7 @@ in
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
assertions = [ {
|
||||
assertion = config.nix.settings.trusted-users != [ "root" ] || config.nix.settings.extra-trusted-users != [ ];
|
||||
assertion = config.nix.settings.trusted-users != [ "root" ] || (config.nix.settings.extra-trusted-users or [ ]) != [ ];
|
||||
message = ''
|
||||
Your user or group (@admin) needs to be added to `nix.settings.trusted-users` or `nix.settings.extra-trusted-users`
|
||||
to use the Linux builder.
|
||||
|
|
Loading…
Reference in a new issue