fix: resolve conflicting module options
Apparently you aren't allowed to define the same option in multiple modules, even if the definitions are identical.
This commit is contained in:
parent
5965922b57
commit
dedd95c442
2 changed files with 17 additions and 20 deletions
|
|
@ -1,13 +1,8 @@
|
|||
args@{ config, lib, ... }:
|
||||
{
|
||||
options.aether = {
|
||||
# Referenced general options
|
||||
inherit (import ../options.nix args)
|
||||
domain
|
||||
https
|
||||
acmeEmail;
|
||||
imports = [ ../options.nix ];
|
||||
|
||||
# Module-specific options
|
||||
options.aether = {
|
||||
forgejo = {
|
||||
subdomain = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
|
|
|
|||
|
|
@ -1,19 +1,21 @@
|
|||
{ lib, ... }:
|
||||
{
|
||||
domain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The domain name the server is hosted on.";
|
||||
};
|
||||
options.aether = {
|
||||
domain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "The domain name the server is hosted on.";
|
||||
};
|
||||
|
||||
https = lib.mkOption {
|
||||
type = lib.types.boolByOr;
|
||||
default = true;
|
||||
description = "Whether to force HTTPS connections for websites.";
|
||||
};
|
||||
https = lib.mkOption {
|
||||
type = lib.types.boolByOr;
|
||||
default = true;
|
||||
description = "Whether to force HTTPS connections for websites.";
|
||||
};
|
||||
|
||||
acmeEmail = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Email address for ACME.";
|
||||
acmeEmail = lib.mkOption {
|
||||
type = lib.types.nullOr lib.types.str;
|
||||
default = null;
|
||||
description = "Email address for ACME.";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue