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 #842 from Enzime/linux-builder-trust

linux-builder: remove trusted user requirement
This commit is contained in:
Emily 2024-06-13 19:58:05 +01:00 committed by GitHub
commit b2ee0b3c03
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -167,14 +167,6 @@ in
};
config = mkIf cfg.enable {
assertions = [ {
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.
'';
} ];
system.activationScripts.preActivation.text = ''
mkdir -p ${cfg.workingDirectory}
'';