Compare commits

..

No commits in common. "eaaa6c95465fdb1f0f4901aade20de3618e74522" and "0238865a16a01a53e2b437592dd10c3d17867cbc" have entirely different histories.

View file

@ -1,22 +1,19 @@
{ {
lib, lib,
pureInputs, inputs,
config,
... ...
}: }:
let let
# Taken from https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix # Taken from https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix
inherit (lib) filterAttrs mapAttrs'; inherit (lib) filterAttrs mapAttrs';
flakes = filterAttrs ( flakes = filterAttrs (name: value: (value ? outputs)) inputs;
name: value: (value ? outputs) && (name != "self") && (name != "nixos-config")
) pureInputs;
nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes; nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes;
in in
{ {
nix.registry = nixRegistry; nix.registry = nixRegistry;
environment.etc = mapAttrs' (name: value: { environment.etc = mapAttrs' (name: value: {
name = "nix/inputs/${name}"; name = "nix/inputs/${name}";
value = lib.mkIf config.nix.enable { value = {
source = value.outPath; source = value.outPath;
}; };
}) flakes; }) flakes;