mirror of
https://github.com/Gerg-L/nixos.git
synced 2025-12-10 00:43:56 -05:00
fixed duplicate system in nix.nix
This commit is contained in:
parent
129dcbe951
commit
000915a375
1 changed files with 16 additions and 18 deletions
|
|
@ -12,26 +12,24 @@
|
||||||
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;
|
|
||||||
}
|
|
||||||
) (
|
|
||||||
lib.attrsets.filterAttrs (
|
|
||||||
_: value: (
|
|
||||||
!(lib.attrsets.hasAttrByPath ["flake"] value) || value.flake == false
|
|
||||||
)
|
|
||||||
)
|
|
||||||
inputs
|
|
||||||
)
|
|
||||||
// {
|
|
||||||
nixpkgs.flake = unstable;
|
|
||||||
system.flake = self;
|
|
||||||
}
|
}
|
||||||
|
) (
|
||||||
|
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
|
#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 = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue