45 lines
No EOL
1.2 KiB
Nix
45 lines
No EOL
1.2 KiB
Nix
{ ... }:
|
|
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;
|
|
};
|
|
};
|
|
} |