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:
parent
b8c286c82c
commit
add08fcab0
2 changed files with 8 additions and 1 deletions
|
@ -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)
|
||||
];
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue