From d086af7e006e21dff145f40f8a48883156f1b086 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 15 May 2021 20:25:09 +0200 Subject: [PATCH] modules: nix: pin flake registry to common inputs --- modules/nix.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/modules/nix.nix b/modules/nix.nix index fb601a5..6cba363 100644 --- a/modules/nix.nix +++ b/modules/nix.nix @@ -1,9 +1,17 @@ # Nix related settings -{ pkgs, ... }: +{ inputs, pkgs, ... }: { nix = { package = pkgs.nixFlakes; + 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; + # Add NUR to run some packages that are only present there + nur.flake = inputs.nur; + }; extraOptions = '' experimental-features = nix-command flakes '';