refactor: moved subdomain options into proxy file
This commit is contained in:
parent
dfdd6bcc82
commit
9b02e30080
16 changed files with 84 additions and 73 deletions
|
@ -8,14 +8,6 @@
|
|||
./proxy.nix
|
||||
];
|
||||
|
||||
options.services.searx = {
|
||||
subdomain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "subdomain of base domain that searx will be hosted at";
|
||||
default = "searx";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf config.services.searx.enable {
|
||||
sops.secrets = {
|
||||
"services/searx" = {
|
||||
|
|
|
@ -3,6 +3,14 @@
|
|||
lib,
|
||||
...
|
||||
}: {
|
||||
options.services.searx = {
|
||||
subdomain = lib.mkOption {
|
||||
type = lib.types.str;
|
||||
description = "subdomain of base domain that searx will be hosted at";
|
||||
default = "searx";
|
||||
};
|
||||
};
|
||||
|
||||
config = lib.mkIf (config.services.searx.enable && config.host.reverse_proxy.enable) {
|
||||
host = {
|
||||
reverse_proxy.subdomains.searx = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue