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:
Kiana Sheibani 2025-04-01 22:20:26 -04:00
parent 5965922b57
commit dedd95c442
Signed by: toki
GPG key ID: 6CB106C25E86A9F7
2 changed files with 17 additions and 20 deletions

View file

@ -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;

View file

@ -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.";
};
};
}