From b7fb087660be8aca2d905ec2eaceda993115f3be Mon Sep 17 00:00:00 2001 From: Felix Stupp Date: Mon, 26 Aug 2024 23:14:10 +0000 Subject: [PATCH] add flake submodule flake reflection & fix secrix app broken in 291bf42e2a1814b4e3b73d65fe75bdd647473c9d as `self` of flake was becoming inaccessible. further hidden with a448ae9fb194fa267e1822403fc6f35a6412af47 because it overloaded the former self argument --- flake.nix | 1 + nix/apps/default.nix | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/flake.nix b/flake.nix index a251ab0..4723855 100644 --- a/flake.nix +++ b/flake.nix @@ -48,6 +48,7 @@ # Usage in submodule: # { ... }@flakeArg: { } # add "..." this so new ones can easily be added + flake = self; # full flake reflection inherit # tools / shortcuts lib # nixpkgs & my lib combined diff --git a/nix/apps/default.nix b/nix/apps/default.nix index cb338ea..2b2811a 100644 --- a/nix/apps/default.nix +++ b/nix/apps/default.nix @@ -1,7 +1,7 @@ { + flake, inputs, lib, - self, ... }@flakeArg: { system, ... }@sysArg: @@ -12,6 +12,6 @@ assert lib.assertMsg (system == "x86_64-linux") '' secrix is currently only compatible with x86_64-linux ''; - inputs.secrix.secrix self; + inputs.secrix.secrix flake; }