use pureInputs and filter out nixos-configuration for nix registry
This commit is contained in:
parent
0238865a16
commit
24f25ca3bb
1 changed files with 4 additions and 2 deletions
|
@ -1,12 +1,14 @@
|
|||
{
|
||||
lib,
|
||||
inputs,
|
||||
pureInputs,
|
||||
...
|
||||
}:
|
||||
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)) inputs;
|
||||
flakes = filterAttrs (
|
||||
name: value: (value ? outputs) && (name != "self") && (name != "nixos-config")
|
||||
) pureInputs;
|
||||
nixRegistry = builtins.mapAttrs (name: v: { flake = v; }) flakes;
|
||||
in
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue