From 8fb243b6f0b66f2a8f0784343c88b6bff9a4d0d2 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Mon, 11 Nov 2024 00:59:02 +0000 Subject: [PATCH] feat: make self' available in nixos modules --- --- a/modules/nixos.nix +++ b/modules/nixos.nix @@ -2,6 +2,7 @@ lib, fleetLib, inputs, + self, config, _fleetFlakeRootConfig, ... @@ -40,7 +41,7 @@ (config.nixos // {key = "attr";}) ]; specialArgs = { - inherit fleetLib inputs; + inherit fleetLib inputs self; inputs' = mapAttrs (inputName: input: builtins.addErrorContext "while retrieving system-dependent attributes for input ${escapeNixIdentifier inputName}" ( @@ -49,6 +50,7 @@ else "input is not a flake, perhaps flake = false was added to te input declaration?" )) inputs; + self' = builtins.addErrorContext "while retrieving system-dependent attributes for a flake's own outputs" (_fleetFlakeRootConfig.perInput system self); }; }; }; -- gitstuff