feat: standardise acme to using `services.skynet."${name}";
` format
This commit is contained in:
parent
023b491d89
commit
449ada5cec
15 changed files with 24 additions and 24 deletions
|
@ -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 = {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue