more setting up

This commit is contained in:
Chris Kruining 2025-09-17 20:46:13 +02:00
parent 23e1bbe88a
commit dfd604f73c
Signed by: chris
SSH key fingerprint: SHA256:nG82MUfuVdRVyCKKWqhY+pCrbz9nbX6uzUns4RKa1Pg
7 changed files with 141 additions and 73 deletions

View file

@ -1,14 +1,14 @@
{ ... }:
{ lib, ... }:
let
inherit (builtins) readFile head;
inherit (builtins) readFile;
in
{
_class = "clan.service";
manifest = {
name = "amarth/k3s";
description = "amarth/k3s";
categories = [ "System" "Network" ];
description = "K3s service in order to set up a cluster";
categories = [ "System" "Network" "Containers" "Virtualisation" ];
readme = readFile ./README.md;
};
@ -27,8 +27,8 @@ in
};
};
perInstance = { settings, ... }: {
nixosModule = ./server.nix;
perInstance = instanceArgs: {
nixosModule = lib.modules.importApply ./roles/server.nix instanceArgs;
};
};
@ -36,10 +36,12 @@ in
# Agent configuration
#==============================================================================================================
roles.agent = {
interface = { lib, ... }: { };
interface = { lib, ... }: {
options = {};
};
perInstance = { settings, instanceName, roles, ... }: {
nixosModule = ./agent.nix;
perInstance = instanceArgs: {
nixosModule = lib.modules.importApply ./roles/agent.nix instanceArgs;
};
};
}
}