fix(modules/searx): fix undefined variable 'enable'
Some checks failed
Nix CI / build (push) Failing after 4m11s
Some checks failed
Nix CI / build (push) Failing after 4m11s
This commit is contained in:
parent
90483083ce
commit
181c0dfa6b
2 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ let
|
||||||
cfg = config.machine.searxng;
|
cfg = config.machine.searxng;
|
||||||
in
|
in
|
||||||
with lib;
|
with lib;
|
||||||
mkIf enable {
|
mkIf cfg.enable {
|
||||||
networking.firewall = {
|
networking.firewall = {
|
||||||
allowedTCPPorts = [ cfg.port ];
|
allowedTCPPorts = [ cfg.port ];
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@ let
|
||||||
cfg = config.machine.searxng;
|
cfg = config.machine.searxng;
|
||||||
in
|
in
|
||||||
with lib;
|
with lib;
|
||||||
mkIf enable {
|
mkIf cfg.enable {
|
||||||
services.searx = {
|
services.searx = {
|
||||||
enable = true;
|
enable = true;
|
||||||
redisCreateLocally = true;
|
redisCreateLocally = true;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue