File tree Expand file tree Collapse file tree
nixos/modules/system/activation Expand file tree Collapse file tree Original file line number Diff line number Diff line change 113113 default = [ ] ;
114114 description = ''
115115 A list of packages that should be included in the system
116- closure but not otherwise made available to users. This is
117- primarily used by the installation tests.
116+ closure but not otherwise made available to users.
117+ '' ;
118+ } ;
119+
120+ system . checks = mkOption {
121+ type = types . listOf types . package ;
122+ default = [ ] ;
123+ description = ''
124+ A list of packages that are added as dependencies of the activation
125+ script build, for the purpose of validating the configuration.
126+
127+ Unlike <literal>system.extraDependencies</literal>, these paths do not
128+ become part of the runtime closure of the system.
118129 '' ;
119130 } ;
120131
173184 "$out/configuration.nix"
174185 '' ;
175186
187+ system . systemBuilderAttrs . passedTests = concatStringsSep " " config . system . checks ;
188+
176189 system . build . toplevel = system ;
177190
178191 # Traditionally, the option default contained the logic for taking this from
You can’t perform that action at this time.
0 commit comments