Commit 9b2196c

HPCesia <me@hpcesia.com>
2025-08-10 11:41:00
fix: sops attr missing when mihomo disabled
1 parent d655af0
Changed files (1)
modules
nixos
base
mihomo
modules/nixos/base/mihomo/config/proxy-providers.nix
@@ -1,4 +1,8 @@
-{config, ...}: let
+{
+  lib,
+  config,
+  ...
+}: let
   NodeParam = {
     type = "http";
     interval = 86400;
@@ -9,7 +13,7 @@
     };
   };
 in {
-  services.mihomo.config.proxy-providers = {
+  services.mihomo.config.proxy-providers = lib.mkIf config.services.mihomo.enable {
     "Node-YiYuan" =
       NodeParam
       // {