summaryrefslogtreecommitdiff
path: root/modules/system
diff options
context:
space:
mode:
authorJohn Soo <jsoo1@asu.edu>2021-12-17 13:19:56 -0700
committerJohn Soo <jsoo1@asu.edu>2023-05-31 07:28:23 -0600
commitadd08fcab07cea0db9b5403861d5ae81ee09f1ee (patch)
tree4b7451ce79edac498a7ffdd64de0f3bd5070bdc9 /modules/system
parentb8c286c82c6b47826a6c0377e7017052ad91353c (diff)
flakes: Do not verify channels when using flakes.
Diffstat (limited to 'modules/system')
-rw-r--r--modules/system/checks.nix8
-rw-r--r--modules/system/flake-overrides.nix1
2 files changed, 8 insertions, 1 deletions
diff --git a/modules/system/checks.nix b/modules/system/checks.nix
index 4ce6991..bb1ed11 100644
--- a/modules/system/checks.nix
+++ b/modules/system/checks.nix
@@ -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)
];
diff --git a/modules/system/flake-overrides.nix b/modules/system/flake-overrides.nix
index 67a7f79..df3eb16 100644
--- a/modules/system/flake-overrides.nix
+++ b/modules/system/flake-overrides.nix
@@ -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;