From 3ed2fac3db4553f5101125ce98959a9303377976 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 7 Dec 2023 21:22:09 +0000 Subject: [PATCH] flake: nixos: use module-provided 'lib' I can't use `self.lib` to define options, that would result in infinite recursion. --- flake/nixos.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/flake/nixos.nix b/flake/nixos.nix index fe124d7..b48b551 100644 --- a/flake/nixos.nix +++ b/flake/nixos.nix @@ -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; };