Merge pull request #230316 from wrvsrx/fix-x-restart-triggers

nixos/lib: hash triggers after converting them to string in systemd-lib

authored by Will Fancher and committed by GitHub a1319118 b7a9deb5

+2 -2
+2 -2
nixos/lib/systemd-lib.nix
··· 289 289 // optionalAttrs (config.requisite != []) 290 290 { Requisite = toString config.requisite; } 291 291 // optionalAttrs (config ? restartTriggers && config.restartTriggers != []) 292 - { X-Restart-Triggers = toString config.restartTriggers; } 292 + { X-Restart-Triggers = "${pkgs.writeText "X-Restart-Triggers" (toString config.restartTriggers)}"; } 293 293 // optionalAttrs (config ? reloadTriggers && config.reloadTriggers != []) 294 - { X-Reload-Triggers = toString config.reloadTriggers; } 294 + { X-Reload-Triggers = "${pkgs.writeText "X-Reload-Triggers" (toString config.reloadTriggers)}"; } 295 295 // optionalAttrs (config.description != "") { 296 296 Description = config.description; } 297 297 // optionalAttrs (config.documentation != []) {