move clan definition to its own module
This commit is contained in:
parent
d7fe20c71c
commit
02c48167eb
2 changed files with 51 additions and 43 deletions
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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue