This repository has been archived on 2025-09-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
amarth/clan.nix
2025-09-03 17:26:40 +02:00

54 lines
1.5 KiB
Nix

{
# Ensure this is unique among all clans you want to use.
meta = {
name = "amarth";
description = "Amarth cloud";
};
inventory.machines = {
m1 = {
name = "Management node 1";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:management" "criticallity: medium" "" ];
};
c1 = {
name = "Compute node 1";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ];
};
c2 = {
name = "Compute node 2";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ];
};
c3 = {
name = "Compute node 3";
machineClass = "nixos";
tags = [ "cloud:amarth" "region:oss" "nodeType:compute" "criticallity: medium" "" ];
};
};
# Docs: See https://docs.clan.lol/reference/clanServices
inventory.instances = {
admin = {
roles.default.tags.all = { };
roles.default.settings.allowedKeys = {
"chris" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICE+TFkjJ8p8fMOddvg/waKAjKJ6DRvvouj1MdXc1Taj";
};
};
zerotier = {
roles.controller.machines."m1" = { };
roles.peer.tags.all = { };
};
};
# Additional NixOS configuration can be added here.
# machines/jon/configuration.nix will be automatically imported.
# See: https://docs.clan.lol/guides/more-machines/#automatic-registration
machines = {
m1 = { config, pkgs, ... }: {
environment.systemPackages = [ pkgs.asciinema ];
};
};
}