From 49349c5e66753d7ff07379beca75b5e2976e7257 Mon Sep 17 00:00:00 2001 From: Charlie Root Date: Mon, 21 Oct 2024 11:56:01 +0200 Subject: [PATCH] registry: add flake as system --- modules/system/nix/module.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/system/nix/module.nix b/modules/system/nix/module.nix index 7647dc6..45508f4 100644 --- a/modules/system/nix/module.nix +++ b/modules/system/nix/module.nix @@ -23,7 +23,9 @@ in { # this is taken from sioodmy. # pin the registry to avoid downloading and evaling a new nixpkgs version every time - registry = lib.mapAttrs (_: v: {flake = v;}) inputs; + registry = + lib.mapAttrs (_: v: {flake = v;}) inputs + // {system.flake = inputs.self;}; # This will additionally add your inputs to the system's legacy channels # Making legacy nix commands consistent as well