Skip to content

Commit

Permalink
nix.checks: create clean switch-configuration source
Browse files Browse the repository at this point in the history
Adds `switchConfigurationSrc` source to checks that can be used for
other checks. This will replace derivations that use `self` for the
source which creates a new derivation every time anything in the
repository changes.
  • Loading branch information
djacu committed Nov 29, 2024
1 parent c2c6d4e commit 2613d72
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nix/checks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,15 @@ let
../../switch-configuration
];
};

# Used for derivations where switch-configuration is the primary directory.
switchConfigurationSrc = toSource {
root = ../..;
fileset = unions [
../../facts
../../switch-configuration
];
};
in
genAttrs
[
Expand Down

0 comments on commit 2613d72

Please sign in to comment.