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
|
let
|
||||||
inherit (self) lib;
|
|
||||||
|
|
||||||
defaultModules = [
|
defaultModules = [
|
||||||
{
|
{
|
||||||
# Let 'nixos-version --json' know about the Git revision
|
# Let 'nixos-version --json' know about the Git revision
|
||||||
|
@ -23,7 +21,7 @@ let
|
||||||
];
|
];
|
||||||
specialArgs = {
|
specialArgs = {
|
||||||
# Use my extended lib in NixOS configuration
|
# Use my extended lib in NixOS configuration
|
||||||
inherit lib;
|
inherit (self) lib;
|
||||||
# Inject inputs to use them in global registry
|
# Inject inputs to use them in global registry
|
||||||
inherit inputs;
|
inherit inputs;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue