fixed duplicate system in nix.nix

This commit is contained in:
Gerg-L 2023-02-23 18:58:47 -05:00
parent 129dcbe951
commit 000915a375

View file

@ -12,26 +12,24 @@
nix = {
# package = nix.packages.${pkgs.system}.nix;
#automatically get registry from input flakes
registry =
(
lib.attrsets.mapAttrs (
_: value: {
flake = value;
}
) (
lib.attrsets.filterAttrs (
_: value: (
!(lib.attrsets.hasAttrByPath ["flake"] value) || value.flake == false
)
)
inputs
)
// {
nixpkgs.flake = unstable;
system.flake = self;
registry = (
lib.attrsets.mapAttrs (
_: value: {
flake = value;
}
) (
lib.attrsets.filterAttrs (
_: value: (
!(lib.attrsets.hasAttrByPath ["flake"] value) || value.flake == false
)
)
inputs
)
// {system = {flake = self;};};
// {
nixpkgs.flake = unstable;
system.flake = self;
}
);
#automatically add registry entries to nixPath
nixPath = (lib.mapAttrsToList (name: value: name + "=" + value) inputs) ++ ["system=${self}" "nixpkgs=${unstable}"];
settings = {