File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 inputs ,
3+ lib ,
34 self ,
45 ...
56} :
7+ let
8+ inherit ( builtins ) mapAttrs ;
9+ inherit ( lib . trivial ) flip ;
10+
11+ # overwrite nixosConfigurations
12+ modifiedConfigs = flip mapAttrs self . nixosConfigurations (
13+ _ : cfg :
14+ cfg . extendModules {
15+ modules = [
16+ self . modules . nixos . flakeSuppressRevision # avoid rebuilds after unrelated changes
17+ ] ;
18+ }
19+ ) ;
20+ modifiedSelf = self // {
21+ nixosConfigurations = modifiedConfigs ;
22+ outputs = self . outputs // {
23+ nixosConfigurations = modifiedConfigs ;
24+ } ;
25+ } ;
26+ in
627{
728 _class = "flake" ;
829 perSystem =
1233
1334 # similar to disko-install-menu.checks.SYSTEM.offineBuilds-*
1435 # (TODO in disko-install-menu, export test framework & use here)
36+ # TODO still rebuilds on unsignificant changes, fix that
1537 diskoOfflineInstall = pkgs . testers . runNixOSTest {
1638 name = "diskoOfflineInstall" ;
1739 # similar as above: allow customizations with overlays
2345 enable = true ;
2446 offlineCapable = true ;
2547 options = {
26- defaultFlake = "${ self } " ;
48+ # should not be used on --debug-test-build
49+ # & fixed to avoid rebuilds after unrelated changes
50+ defaultFlake = "/non-existing/path_to/flake" ;
2751 defaultHost = "empty" ;
2852 } ;
2953 listedFlakes . defaultFlake = {
3054 offlineHosts . empty = true ;
31- offlineReference = self ;
55+ offlineReference = modifiedSelf ;
3256 } ;
3357 } ;
3458 virtualisation = {
You can’t perform that action at this time.
0 commit comments