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

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
1 changed files with 2 additions and 4 deletions

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;
};