feat: helper functions; docs: more complex examples
This commit is contained in:
20 files changed
+1046
-19
No files matched your search
@@ -35,6 +35,8 @@ in
|
||||
# have it cleared on reboot.
|
||||
runtimeDir = lib.mkDefault "${config.xdg.cacheHome}/proxy-suite/run";
|
||||
};
|
||||
# home-manager's place for helper functions, as on NixOS.
|
||||
lib.proxy-suite = cfg.internal.helpers;
|
||||
}
|
||||
|
||||
(lib.mkIf cfg.enable (
|
||||
|
||||
@@ -32,6 +32,9 @@ in
|
||||
firewallPackage = config.networking.firewall.package;
|
||||
resolvconfPackage = config.networking.resolvconf.package;
|
||||
};
|
||||
# NixOS's place for helper functions; set even while disabled, so a config can
|
||||
# refer to it unconditionally.
|
||||
lib.proxy-suite = cfg.internal.helpers;
|
||||
}
|
||||
|
||||
(lib.mkIf cfg.enable (
|
||||
|
||||
Reference in new issue
Block a user