1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2025-03-13 20:30:02 +00:00

flakes: Do not verify channels when using flakes.

This commit is contained in:
John Soo 2021-12-17 13:19:56 -07:00
parent b8c286c82c
commit add08fcab0
2 changed files with 8 additions and 1 deletions

View file

@ -205,6 +205,12 @@ in
description = "Whether to run the NIX_PATH validation checks.";
};
system.checks.verifyNixChannels = mkOption {
type = types.bool;
default = true;
description = "Whether to run the nix-channels validation checks.";
};
system.checks.text = mkOption {
internal = true;
type = types.lines;
@ -222,7 +228,7 @@ in
(mkIf (!config.nix.useDaemon) singleUser)
nixStore
(mkIf (config.nix.gc.automatic && config.nix.gc.user == null) nixGarbageCollector)
nixChannels
(mkIf cfg.verifyNixChannels nixChannels)
nixInstaller
(mkIf cfg.verifyNixPath nixPath)
];

View file

@ -9,6 +9,7 @@ in
{
config = {
system.checks.verifyNixPath = mkDefault false;
system.checks.verifyNixChannels = mkDefault false;
system.darwinVersionSuffix = ".${darwin.shortRev or "dirty"}";
system.darwinRevision = mkIf (darwin ? rev) darwin.rev;