flake: nixos: use module-provided 'lib'
All checks were successful
ci/woodpecker/push/check Pipeline was successful
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:
parent
bdc3e63fff
commit
3ed2fac3db
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue