move clan definition to its own module
This commit is contained in:
44
flake.nix
44
flake.nix
@@ -19,6 +19,7 @@
|
||||
inputs.nix-topology.flakeModule
|
||||
|
||||
./devShells/flake-module.nix
|
||||
./machines/flake-module.nix
|
||||
];
|
||||
|
||||
systems = [
|
||||
@@ -26,49 +27,6 @@
|
||||
"aarch64-linux"
|
||||
];
|
||||
|
||||
clan = {
|
||||
meta.name = "blossom";
|
||||
|
||||
inventory = {
|
||||
instances = {
|
||||
"rpqt-admin" = {
|
||||
module.input = "clan-core";
|
||||
module.name = "admin";
|
||||
roles.default.machines = {
|
||||
"crocus" = { };
|
||||
"genepi" = { };
|
||||
"haze" = { };
|
||||
};
|
||||
roles.default.settings.allowedKeys = {
|
||||
rpqt_haze = (import ./parts).keys.rpqt.haze;
|
||||
};
|
||||
};
|
||||
};
|
||||
services = {
|
||||
zerotier.default = {
|
||||
roles.controller.machines = [
|
||||
"crocus"
|
||||
];
|
||||
roles.peer.machines = [
|
||||
"haze"
|
||||
"genepi"
|
||||
];
|
||||
};
|
||||
sshd.default = {
|
||||
roles.server.machines = [ "crocus" ];
|
||||
};
|
||||
user-password.rpqt = {
|
||||
roles.default.machines = [
|
||||
"crocus"
|
||||
"genepi"
|
||||
"haze"
|
||||
];
|
||||
config.user = "rpqt";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
perSystem = _: {
|
||||
topology.modules = [
|
||||
./topology.nix
|
||||
|
||||
Reference in New Issue
Block a user