too lazy to think of a message, so enjoy this pointless text. Good luck future me...

This commit is contained in:
Chris Kruining 2025-09-18 12:05:31 +00:00
parent 8b90ca0079
commit bc88471e6a

View file

@ -16,16 +16,21 @@ in
# Server configuration
#==============================================================================================================
roles.server = {
interface = { lib, ... }: {
options.name = lib.mkOption {
type = lib.types.str;
default = "";
example = "some-name";
interface = { lib, ... }:
let
inherit (lib) mkOption types toString;
{
options = {
port = mkOption {
type = types.port;
default = 6443;
example = "6443";
description = ''
Temporary option till I figure out something useful
'';
};
};
};
perInstance = { instanceName, settings, machine, roles, ... }: {
nixosModule = { config, pkgs, ... }: {
@ -74,6 +79,9 @@ in
clusterInit = true;
};
};
exports.port = port;
exports.address = "https://\${config.networking.fqdn}:${toString port}";
};
};
@ -124,8 +132,4 @@ in
};
};
};
perMachine = { config, ... }: {
exports.address = "https://${config.networking.fqdn}:6443";
};
}