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,8 +12,7 @@
nix = { nix = {
# package = nix.packages.${pkgs.system}.nix; # package = nix.packages.${pkgs.system}.nix;
#automatically get registry from input flakes #automatically get registry from input flakes
registry = registry = (
(
lib.attrsets.mapAttrs ( lib.attrsets.mapAttrs (
_: value: { _: value: {
flake = value; flake = value;
@ -30,8 +29,7 @@
nixpkgs.flake = unstable; nixpkgs.flake = unstable;
system.flake = self; system.flake = self;
} }
) );
// {system = {flake = self;};};
#automatically add registry entries to nixPath #automatically add registry entries to nixPath
nixPath = (lib.mapAttrsToList (name: value: name + "=" + value) inputs) ++ ["system=${self}" "nixpkgs=${unstable}"]; nixPath = (lib.mapAttrsToList (name: value: name + "=" + value) inputs) ++ ["system=${self}" "nixpkgs=${unstable}"];
settings = { settings = {