Deployment and lifecycle management for Nix
0
fork

Configure Feed

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

feat: add NixOS assertions for removed/changed 0.8.0 config keys

Fail evaluation if users provide:
- subscriptions as a list (now a map in 0.8.0)
- deployment_profiles (removed, use activation_args/reboot_policy on subscriptions)
- default_deployment_profile (removed)

SOW-129

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

+12
+12
nix/nixos/garden.nix
··· 118 118 assertion = activatorCfg.enable || !config.security.sudo-rs.enable; 119 119 message = "sudo-rs is not supported"; 120 120 } 121 + { 122 + assertion = !(cfg.settings ? subscriptions && builtins.isList cfg.settings.subscriptions); 123 + message = "services.sower.garden.settings.subscriptions changed from a list to a map (name -> config) in 0.8.0"; 124 + } 125 + { 126 + assertion = !(cfg.settings ? deployment_profiles); 127 + message = "services.sower.garden.settings.deployment_profiles was removed in 0.8.0; set activation_args and reboot_policy directly on each subscription"; 128 + } 129 + { 130 + assertion = !(cfg.settings ? default_deployment_profile); 131 + message = "services.sower.garden.settings.default_deployment_profile was removed in 0.8.0"; 132 + } 121 133 ]; 122 134 123 135 boot.extraSystemdUnitPaths = lib.optionals manageServices [