git.delta.rocks / jrsonnet / refs/commits / 8fb243b6f0b6

difftreelog

feat make self' available in nixos modules

Yaroslav Bolyukin2024-11-11parent: #92f63f5.patch.diff
in: trunk

1 file changed

modifiedmodules/nixos.nixdiffbeforeafterboth
2 lib,2 lib,
3 fleetLib,3 fleetLib,
4 inputs,4 inputs,
5 self,
5 config,6 config,
6 _fleetFlakeRootConfig,7 _fleetFlakeRootConfig,
7 ...8 ...
40 (config.nixos // {key = "attr<fleet.nixos>";})41 (config.nixos // {key = "attr<fleet.nixos>";})
41 ];42 ];
42 specialArgs = {43 specialArgs = {
43 inherit fleetLib inputs;44 inherit fleetLib inputs self;
44 inputs' = mapAttrs (inputName: input:45 inputs' = mapAttrs (inputName: input:
45 builtins.addErrorContext "while retrieving system-dependent attributes for input ${escapeNixIdentifier inputName}"46 builtins.addErrorContext "while retrieving system-dependent attributes for input ${escapeNixIdentifier inputName}"
46 (47 (
49 else "input is not a flake, perhaps flake = false was added to te input declaration?"50 else "input is not a flake, perhaps flake = false was added to te input declaration?"
50 ))51 ))
51 inputs;52 inputs;
53 self' = builtins.addErrorContext "while retrieving system-dependent attributes for a flake's own outputs" (_fleetFlakeRootConfig.perInput system self);
52 };54 };
53 };55 };
54 };56 };