infrastructure/meta/nodes.nix
Tom Hubrecht 13524c20f6
Some checks failed
build configuration / build_storage01 (push) Successful in 2m35s
build configuration / build_vault01 (push) Successful in 1m19s
build configuration / build_web01 (push) Successful in 1m25s
build configuration / build_compute01 (push) Has been cancelled
feat(machines): Init vault01
2024-01-10 15:00:18 +01:00

44 lines
796 B
Nix

###
# File specifying all the deployement options for the nodes administrated by the dgnum.
#
# Node metadata template is:
#
# NODE_NAME = {
# adminGroups = []; # List of groups that have root access
# admins = []; # List of individuals that have root access
# deployment = {}; # Colmena deployment options
# nixpkgs = "unstable" or "22.11"; # nixpkgs version
# }
let
mkNode = _: attrs: {
adminGroups = [ ];
admins = [ ];
deployment = { };
nixpkgs = "23.11";
} // attrs;
in
builtins.mapAttrs mkNode {
web01 = {
deployment.tags = [ "web" ];
stateVersion = "23.05";
};
compute01 = {
deployment.tags = [ "dns" ];
stateVersion = "23.05";
};
storage01 = {
stateVersion = "23.11";
};
vault01 = {
stateVersion = "23.11";
};
}