properly inherit enable on servers

This commit is contained in:
2025-09-28 11:14:57 -06:00
parent a376428118
commit b4417a6acd
29 changed files with 105 additions and 99 deletions

View File

@@ -8,7 +8,7 @@ in
config = lib.mkIf (cfg.enable && config.my.secureHost) {
sops.secrets."private_cache_keys/atticd".sopsFile = ../../secrets/keys.yaml;
services.atticd = {
enable = true;
inherit (cfg) enable;
environmentFile = config.sops.secrets."private_cache_keys/atticd".path;
settings = {
listen = "[::]:${toString cfg.port}";