initial set up for k3s service

This commit is contained in:
Chris Kruining 2025-09-15 16:25:34 +02:00
parent f26d7d4e69
commit dc7afdf791
No known key found for this signature in database
GPG key ID: EB894A3560CCCAD2
9 changed files with 491 additions and 0 deletions

View file

@ -0,0 +1,45 @@
{ ... }:
let
inherit (builtins) readFile head;
in
{
_class = "clan.service";
manifest = {
name = "amarth/k3s";
description = "amarth/k3s";
categories = [ "System" "Network" ];
readme = readFile ./README.md;
};
#==============================================================================================================
# Server configuration
#==============================================================================================================
roles.server = {
interface = { lib, ... }: {
options.name = lib.mkOption {
type = lib.types.str;
default = "";
example = "some-name";
description = ''
Temporary option till I figure out something useful
'';
};
};
perInstance = { settings, ... }: {
nixosModule = ./server.nix;
};
};
#==============================================================================================================
# Agent configuration
#==============================================================================================================
roles.agent = {
interface = { lib, ... }: { };
perInstance = { settings, instanceName, roles, ... }: {
nixosModule = ./agent.nix;
};
};
}