use nixpkgs overlays in nix by default
This commit is contained in:
parent
6a7e50f1fa
commit
d8080e8f7c
2 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
inputs: {lib, ...}: let
|
||||
# Taken from https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix
|
||||
inherit (lib) filterAttrs mapAttrs';
|
||||
flakes = filterAttrs (name: value: (name != "self") && (value ? outputs)) inputs;
|
||||
flakes = filterAttrs (name: value: value ? outputs) inputs;
|
||||
nixRegistry =
|
||||
builtins.mapAttrs
|
||||
(name: v: {flake = v;})
|
||||
|
@ -15,5 +15,6 @@ in {
|
|||
value = {source = value.outPath;};
|
||||
})
|
||||
inputs;
|
||||
environment.etc."nix/inputs/nixpkgs-overlays".source = ./nixpkgs-overlays;
|
||||
nix.nixPath = ["/etc/nix/inputs"];
|
||||
}
|
||||
|
|
1
utils/nixpkgs-overlays/overlay.nix
Normal file
1
utils/nixpkgs-overlays/overlay.nix
Normal file
|
@ -0,0 +1 @@
|
|||
(import <self>).overlays.${builtins.currentSystem}
|
Loading…
Reference in a new issue