use nixpkgs overlays in nix by default

This commit is contained in:
Charlotte 🦝 Delenk 2023-02-09 16:41:52 +01:00
parent 6a7e50f1fa
commit d8080e8f7c
Signed by: darkkirb
GPG key ID: AB2BD8DAF2E37122
2 changed files with 3 additions and 1 deletions

View file

@ -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"];
}

View file

@ -0,0 +1 @@
(import <self>).overlays.${builtins.currentSystem}