forked from mirrors_public/oddlama_nix-config
feat: switch to colmena
This commit is contained in:
parent
bef7bb1f2d
commit
587703c157
11 changed files with 139 additions and 139 deletions
|
@ -1,19 +1,15 @@
|
|||
let
|
||||
with builtins; let
|
||||
hosts = {
|
||||
nom = {
|
||||
type = "nixos";
|
||||
hostPlatform = "x86_64-linux";
|
||||
remoteBuild = true;
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
ward = {
|
||||
type = "nixos";
|
||||
hostPlatform = "x86_64-linux";
|
||||
remoteBuild = true;
|
||||
system = "x86_64-linux";
|
||||
};
|
||||
};
|
||||
|
||||
inherit (builtins) attrNames concatMap listToAttrs filter;
|
||||
|
||||
filterAttrs = pred: set:
|
||||
listToAttrs (concatMap (name: let
|
||||
value = set.${name};
|
||||
|
@ -24,11 +20,12 @@ let
|
|||
|
||||
removeEmptyAttrs = filterAttrs (_: v: v != {});
|
||||
|
||||
# TODO: so much strange shit
|
||||
genSystemGroups = hosts: let
|
||||
systems = ["aarch64-linux" "x86_64-linux"];
|
||||
systemHostGroup = name: {
|
||||
inherit name;
|
||||
value = filterAttrs (_: host: host.hostPlatform == name) hosts;
|
||||
value = filterAttrs (_: host: host.system == name) hosts;
|
||||
};
|
||||
in
|
||||
removeEmptyAttrs (listToAttrs (map systemHostGroup systems));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue