Merge pull request 'Chore: remove unsued inventory example' (#2392) from hsjobeki/clan-core:hsjobeki-main into main
This commit is contained in:
@@ -1,39 +0,0 @@
|
|||||||
{ self, ... }:
|
|
||||||
self.lib.buildClan {
|
|
||||||
# Name of the clan in the UI, should be unique
|
|
||||||
meta.name = "Inventory clan";
|
|
||||||
|
|
||||||
# Should usually point to the directory of flake.nix
|
|
||||||
directory = self;
|
|
||||||
|
|
||||||
inventory = {
|
|
||||||
services = {
|
|
||||||
borgbackup.instance_1 = {
|
|
||||||
roles.server.machines = [ "backup_server" ];
|
|
||||||
roles.client.tags = [ "backup" ];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
|
|
||||||
# merged with
|
|
||||||
machines = {
|
|
||||||
"backup_server" = {
|
|
||||||
clan.tags = [ "all" ];
|
|
||||||
# ... rest of the machine config
|
|
||||||
};
|
|
||||||
"client_1_machine" = {
|
|
||||||
clan.tags = [
|
|
||||||
"all"
|
|
||||||
"backup"
|
|
||||||
];
|
|
||||||
};
|
|
||||||
"client_2_machine" = {
|
|
||||||
clan.tags = [
|
|
||||||
"all"
|
|
||||||
"backup"
|
|
||||||
];
|
|
||||||
# Name of the machine in the UI
|
|
||||||
clan.meta.name = "camina";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -5,8 +5,6 @@ let
|
|||||||
);
|
);
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
flake.inventory = import ./example.nix { inherit self; };
|
|
||||||
|
|
||||||
perSystem =
|
perSystem =
|
||||||
{
|
{
|
||||||
pkgs,
|
pkgs,
|
||||||
|
|||||||
Reference in New Issue
Block a user