From 2cc3de7a161aa0f9d47be194344faf1ba0ab85b0 Mon Sep 17 00:00:00 2001 From: r-vdp Date: Sun, 1 Feb 2026 14:20:39 +0200 Subject: [PATCH] nixos/dysnomia: replace activation script See https://github.com/NixOS/nixpkgs/issues/475305 --- nixos/modules/services/misc/dysnomia.nix | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/nixos/modules/services/misc/dysnomia.nix b/nixos/modules/services/misc/dysnomia.nix index acdc9c55555f..2d25c974296b 100644 --- a/nixos/modules/services/misc/dysnomia.nix +++ b/nixos/modules/services/misc/dysnomia.nix @@ -288,15 +288,9 @@ in boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ]; - system.activationScripts.dysnomia = '' - mkdir -p /etc/systemd-mutable/system - if [ ! -f /etc/systemd-mutable/system/dysnomia.target ] - then - ( echo "[Unit]" - echo "Description=Services that are activated and deactivated by Dysnomia" - echo "After=final.target" - ) > /etc/systemd-mutable/system/dysnomia.target - fi - ''; + systemd.targets.dysnomia = { + description = "Services that are activated and deactivated by Dysnomia"; + after = "final.target"; + }; }; }