mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-25 09:28:27 +02:00
refactor: rename colmena-meta to colmenaMeta
This commit is contained in:
@@ -18,9 +18,9 @@
|
|||||||
nixosConfigurations = lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) dataWithoutPaths);
|
nixosConfigurations = lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) dataWithoutPaths);
|
||||||
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or {}) dataWithoutPaths);
|
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or {}) dataWithoutPaths);
|
||||||
# colmena contains some meta info, which need to be merged carefully.
|
# colmena contains some meta info, which need to be merged carefully.
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeNixpkgs or {}) dataWithoutPaths);
|
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeNixpkgs or {}) dataWithoutPaths);
|
||||||
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeSpecialArgs or {}) dataWithoutPaths);
|
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeSpecialArgs or {}) dataWithoutPaths);
|
||||||
};
|
};
|
||||||
# colmena's per-machine data.
|
# colmena's per-machine data.
|
||||||
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) dataWithoutPaths);
|
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) dataWithoutPaths);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
in {
|
in {
|
||||||
nixosConfigurations.${name} = mylib.nixosSystem rk3588SystemArgs;
|
nixosConfigurations.${name} = mylib.nixosSystem rk3588SystemArgs;
|
||||||
|
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeSpecialArgs.${name} = rk3588SpecialArgs;
|
nodeSpecialArgs.${name} = rk3588SpecialArgs;
|
||||||
nodeNixpkgs.${name} = rk3588Pkgs;
|
nodeNixpkgs.${name} = rk3588Pkgs;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
in {
|
in {
|
||||||
nixosConfigurations.${name} = mylib.nixosSystem rk3588SystemArgs;
|
nixosConfigurations.${name} = mylib.nixosSystem rk3588SystemArgs;
|
||||||
|
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeSpecialArgs.${name} = rk3588SpecialArgs;
|
nodeSpecialArgs.${name} = rk3588SpecialArgs;
|
||||||
nodeNixpkgs.${name} = rk3588Pkgs;
|
nodeNixpkgs.${name} = rk3588Pkgs;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -74,8 +74,8 @@ in {
|
|||||||
)
|
)
|
||||||
// {
|
// {
|
||||||
# per-node nixpkgs & specialArgs
|
# per-node nixpkgs & specialArgs
|
||||||
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeNixpkgs or {}) nixosSystemValues);
|
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeNixpkgs or {}) nixosSystemValues);
|
||||||
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeSpecialArgs or {}) nixosSystemValues);
|
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeSpecialArgs or {}) nixosSystemValues);
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
// lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) nixosSystemValues);
|
// lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) nixosSystemValues);
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
nixosConfigurations = lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) dataWithoutPaths);
|
nixosConfigurations = lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) dataWithoutPaths);
|
||||||
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or {}) dataWithoutPaths);
|
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or {}) dataWithoutPaths);
|
||||||
# colmena contains some meta info, which need to be merged carefully.
|
# colmena contains some meta info, which need to be merged carefully.
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeNixpkgs or {}) dataWithoutPaths);
|
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeNixpkgs or {}) dataWithoutPaths);
|
||||||
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeSpecialArgs or {}) dataWithoutPaths);
|
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeSpecialArgs or {}) dataWithoutPaths);
|
||||||
};
|
};
|
||||||
# colmena's per-machine data.
|
# colmena's per-machine data.
|
||||||
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) dataWithoutPaths);
|
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) dataWithoutPaths);
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
in {
|
in {
|
||||||
nixosConfigurations.${name} = mylib.nixosSystem lpi4aSystemArgs;
|
nixosConfigurations.${name} = mylib.nixosSystem lpi4aSystemArgs;
|
||||||
|
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeSpecialArgs.${name} = lpi4aSpecialArgs;
|
nodeSpecialArgs.${name} = lpi4aSpecialArgs;
|
||||||
nodeNixpkgs.${name} = lpi4aPkgs;
|
nodeNixpkgs.${name} = lpi4aPkgs;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -50,7 +50,7 @@
|
|||||||
in {
|
in {
|
||||||
nixosConfigurations.${name} = mylib.nixosSystem lpi4aSystemArgs;
|
nixosConfigurations.${name} = mylib.nixosSystem lpi4aSystemArgs;
|
||||||
|
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeSpecialArgs.${name} = lpi4aSpecialArgs;
|
nodeSpecialArgs.${name} = lpi4aSpecialArgs;
|
||||||
nodeNixpkgs.${name} = lpi4aPkgs;
|
nodeNixpkgs.${name} = lpi4aPkgs;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -18,9 +18,9 @@
|
|||||||
nixosConfigurations = lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) dataWithoutPaths);
|
nixosConfigurations = lib.attrsets.mergeAttrsList (map (it: it.nixosConfigurations or {}) dataWithoutPaths);
|
||||||
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or {}) dataWithoutPaths);
|
packages = lib.attrsets.mergeAttrsList (map (it: it.packages or {}) dataWithoutPaths);
|
||||||
# colmena contains some meta info, which need to be merged carefully.
|
# colmena contains some meta info, which need to be merged carefully.
|
||||||
colmena-meta = {
|
colmenaMeta = {
|
||||||
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeNixpkgs or {}) dataWithoutPaths);
|
nodeNixpkgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeNixpkgs or {}) dataWithoutPaths);
|
||||||
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmena-meta.nodeSpecialArgs or {}) dataWithoutPaths);
|
nodeSpecialArgs = lib.attrsets.mergeAttrsList (map (it: it.colmenaMeta.nodeSpecialArgs or {}) dataWithoutPaths);
|
||||||
};
|
};
|
||||||
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) dataWithoutPaths);
|
colmena = lib.attrsets.mergeAttrsList (map (it: it.colmena or {}) dataWithoutPaths);
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user