modules: nix: pin flake registry to common inputs

This commit is contained in:
Bruno BELANYI 2021-05-15 20:25:09 +02:00
parent 6b50f906fa
commit 4fcad6026a

View file

@ -1,9 +1,17 @@
# Nix related settings # Nix related settings
{ pkgs, ... }: { inputs, pkgs, ... }:
{ {
nix = { nix = {
package = pkgs.nixFlakes; 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 = '' extraOptions = ''
experimental-features = nix-command flakes experimental-features = nix-command flakes
''; '';