flake: nixos: use module-provided 'lib'
All checks were successful
ci/woodpecker/push/check Pipeline was successful

I can't use `self.lib` to define options, that would result in infinite
recursion.
This commit is contained in:
Bruno BELANYI 2023-12-07 21:22:09 +00:00
parent bdc3e63fff
commit 3ed2fac3db

View file

@ -1,7 +1,5 @@
{ self, inputs, ... }:
{ self, inputs, lib, ... }:
let
inherit (self) lib;
defaultModules = [
{
# Let 'nixos-version --json' know about the Git revision
@ -23,7 +21,7 @@ let
];
specialArgs = {
# Use my extended lib in NixOS configuration
inherit lib;
inherit (self) lib;
# Inject inputs to use them in global registry
inherit inputs;
};