diff --git a/modules/age-home.nix b/modules/age-home.nix index 20bf50d..c66c0ee 100644 --- a/modules/age-home.nix +++ b/modules/age-home.nix @@ -231,6 +231,7 @@ in { systemd.user.services.agenix = lib.mkIf pkgs.stdenv.hostPlatform.isLinux { Unit = { Description = "agenix activation"; + X-SwitchMethod = "restart"; }; Service = { Type = "oneshot"; @@ -253,9 +254,5 @@ in { StandardErrorPath = "${config.home.homeDirectory}/Library/Logs/agenix/stderr"; }; }; - - home.activation.agenix = lib.mkIf pkgs.stdenv.hostPlatform.isLinux ( - lib.hm.dag.entryAfter ["linkGeneration"] mountingScript - ); }; }