too lazy to think of a message, so enjoy this pointless text. Good luck future me...
This commit is contained in:
parent
8b90ca0079
commit
bc88471e6a
1 changed files with 16 additions and 12 deletions
|
|
@ -16,14 +16,19 @@ in
|
||||||
# Server configuration
|
# Server configuration
|
||||||
#==============================================================================================================
|
#==============================================================================================================
|
||||||
roles.server = {
|
roles.server = {
|
||||||
interface = { lib, ... }: {
|
interface = { lib, ... }:
|
||||||
options.name = lib.mkOption {
|
let
|
||||||
type = lib.types.str;
|
inherit (lib) mkOption types toString;
|
||||||
default = "";
|
{
|
||||||
example = "some-name";
|
options = {
|
||||||
description = ''
|
port = mkOption {
|
||||||
Temporary option till I figure out something useful
|
type = types.port;
|
||||||
'';
|
default = 6443;
|
||||||
|
example = "6443";
|
||||||
|
description = ''
|
||||||
|
Temporary option till I figure out something useful
|
||||||
|
'';
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
@ -74,6 +79,9 @@ in
|
||||||
clusterInit = true;
|
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";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue