From 1647ab4ac783d2d86b8e739b46204016d15a20ae Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 20 May 2021 19:12:20 +0200 Subject: [PATCH] modules: nix: expose pinned nixpkgs as 'pkgs' That way if I do want to use that latest version, I can still use `nixpkgs#`. --- modules/nix.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/nix.nix b/modules/nix.nix index 6cba363..bfde967 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -7,8 +7,8 @@ registry = { # Allow me to use my custom package using `nix run self#pkg` self.flake = inputs.self; - # Do not follow master, use pinned revision instead - nixpkgs.flake = inputs.nixpkgs; + # Use pinned nixpkgs when using `nix run pkgs#` + pkgs.flake = inputs.nixpkgs; # Add NUR to run some packages that are only present there nur.flake = inputs.nur; };