1
0
Fork 0
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:
Daiderd Jordan 2023-07-09 08:02:16 +02:00 committed by GitHub
commit 4e3fc18647
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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.