From 2dfef514292b666df6fdb19d192d54c3fdac9fe7 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Sat, 25 May 2024 13:40:33 +0200 Subject: fix(modules/services/nix): Add my overlayed `nixpkgs` to the flake --- modules/system/services/nix/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/system/services/nix/default.nix b/modules/system/services/nix/default.nix index 5766fcdd..e4fe11d1 100644 --- a/modules/system/services/nix/default.nix +++ b/modules/system/services/nix/default.nix @@ -4,6 +4,7 @@ nixpkgs_as_input, templates, self, + system, ... }: { nix = { @@ -14,7 +15,12 @@ registry = { nixpkgs.flake = nixpkgs_as_input; - n.flake = self; # Otherwise the nixpkgs config is not available + n.flake = + nixpkgs_as_input + // { + # Otherwise nixpkgs's config and overlays are not available: + outputs.legacyPackages."${system}" = pkgs; + }; t.flake = templates; -- cgit 1.4.1