Deployment and lifecycle management for Nix
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

chore: mark subscription fields in garden nixos config as deprecated in favor of policy

+20
+20
nix/nixos/garden.nix
··· 120 120 } 121 121 ]; 122 122 123 + warnings = 124 + let 125 + subs = cfg.settings.subscriptions or { }; 126 + legacyFields = [ 127 + "reboot_policy" 128 + "allow_realtime" 129 + "poll_on_connect" 130 + "window" 131 + "activation_args" 132 + ]; 133 + subsWithLegacy = lib.filterAttrs (_name: sub: lib.any (field: sub ? ${field}) legacyFields) subs; 134 + in 135 + lib.mapAttrsToList ( 136 + name: sub: 137 + let 138 + found = lib.filter (field: sub ? ${field}) legacyFields; 139 + in 140 + "services.sower.garden: subscription '${name}' uses deprecated fields (${lib.concatStringsSep ", " found}); use 'policy' instead" 141 + ) subsWithLegacy; 142 + 123 143 boot.extraSystemdUnitPaths = lib.optionals manageServices [ 124 144 "/etc/sower/systemd/system" 125 145 ];