feat: standardise acme to using `services.skynet."${name}";` format

This commit is contained in:
silver 2024-05-30 13:34:59 +01:00
parent 023b491d89
commit 449ada5cec
Signed by: silver
GPG key ID: 54E2C71918E93B74
15 changed files with 24 additions and 24 deletions

View file

@ -5,21 +5,21 @@
...
}:
with lib; let
cfg = config.skynet_acme;
name = "acme";
cfg = config.services.skynet."${name}";
in {
imports = [];
options = {
skynet_acme = {
domains = lib.mkOption {
default = [];
type = lib.types.listOf lib.types.str;
description = ''
A list of domains to use for this server.
'';
};
options.services.skynet."${name}" = {
domains = lib.mkOption {
default = [];
type = lib.types.listOf lib.types.str;
description = ''
A list of domains to use for this server.
'';
};
};
config = {
# group that will own the certificates
users.groups.acme = {};