Compare commits
No commits in common. "eaaa6c95465fdb1f0f4901aade20de3618e74522" and "0238865a16a01a53e2b437592dd10c3d17867cbc" have entirely different histories.
eaaa6c9546
...
0238865a16
1 changed files with 3 additions and 6 deletions
|
@ -1,22 +1,19 @@
|
|||
{
|
||||
lib,
|
||||
pureInputs,
|
||||
config,
|
||||
inputs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
# Taken from https://github.com/gytis-ivaskevicius/flake-utils-plus/blob/master/lib/options.nix
|
||||
inherit (lib) filterAttrs mapAttrs';
|
||||
flakes = filterAttrs (
|
||||
name: value: (value ? outputs) && (name != "self") && (name != "nixos-config")
|
||||
) pureInputs;
|
||||
flakes = filterAttrs (name: value: (value ? outputs)) inputs;
|
||||
nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes;
|
||||
in
|
||||
{
|
||||
nix.registry = nixRegistry;
|
||||
environment.etc = mapAttrs' (name: value: {
|
||||
name = "nix/inputs/${name}";
|
||||
value = lib.mkIf config.nix.enable {
|
||||
value = {
|
||||
source = value.outPath;
|
||||
};
|
||||
}) flakes;
|
||||
|
|
Loading…
Reference in a new issue