fix: use specialArgs instead of _module.args

Avoids infinite recursion issues in some cases.
This commit is contained in:
Felix Schröter 2023-07-12 20:50:01 +02:00
parent afdcbb0c06
commit 09f7db14c3
Signed by: felschr
GPG key ID: 671E39E6744C807D
3 changed files with 45 additions and 10 deletions

View file

@ -1,4 +1,4 @@
{ pkgs, lib, self, inputs, ... }:
{ pkgs, lib, inputs, ... }:
let
flakes = lib.filterAttrs (name: value: value ? outputs) inputs;
@ -6,7 +6,7 @@ let
in {
# Let 'nixos-version --json' know about the Git revision
# of this flake.
system.configurationRevision = lib.mkIf (self ? rev) self.rev;
system.configurationRevision = lib.mkIf (inputs.self ? rev) inputs.self.rev;
nix = {
extraOptions = "experimental-features = nix-command flakes";