From a99954b12acd6d5bd4088681e5f8cca98fb301f6 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 24 Feb 2023 09:25:38 +0000 Subject: [PATCH] modules: system: nix: add explicit 'pkgs' link --- modules/system/nix/default.nix | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/modules/system/nix/default.nix b/modules/system/nix/default.nix index 463c0f5..127a20d 100644 --- a/modules/system/nix/default.nix +++ b/modules/system/nix/default.nix @@ -60,20 +60,21 @@ in value = { source = v.outPath; }; }; makeLinks = lib.mapAttrs' makeLink; + channels = { + self = inputs.self; + pkgs = inputs.nixpkgs; + nur = inputs.nur; + } // lib.optionalAttrs cfg.overrideNixpkgs { + nixpkgs = inputs.nixpkgs; + }; in - makeLinks { - inherit (inputs) - self - nixpkgs - nur - ; - }; + makeLinks channels; }) (lib.mkIf cfg.addToNixPath { nix.nixPath = [ "self=/etc/nix/inputs/self" - "pkgs=/etc/nix/inputs/nixpkgs" + "pkgs=/etc/nix/inputs/pkgs" "nur=/etc/nix/inputs/nur" ] ++ lib.optional cfg.overrideNixpkgs "nixpkgs=/etc/nix/inputs/nixpkgs"