From 9ea8264500b87994378db382e93447bb9013aba1 Mon Sep 17 00:00:00 2001 From: Atemu Date: Thu, 9 Jul 2026 01:51:45 +0200 Subject: [PATCH] nixos/emacs: don't restartIfChanged Fixes https://github.com/NixOS/nixpkgs/issues/535449 This probably started happening with the rust rewrite of the switcher also restarting user units now. --- nixos/modules/services/editors/emacs.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/nixos/modules/services/editors/emacs.nix b/nixos/modules/services/editors/emacs.nix index 2cf753484a808..c47577a6ce094 100644 --- a/nixos/modules/services/editors/emacs.nix +++ b/nixos/modules/services/editors/emacs.nix @@ -80,6 +80,9 @@ in unitConfig = lib.optionalAttrs cfg.startWithGraphical { After = "graphical-session.target"; }; + + # Long-lived session that ought to only be restarted manually + restartIfChanged = false; } // lib.optionalAttrs cfg.enable { wantedBy = if cfg.startWithGraphical then [ "graphical-session.target" ] else [ "default.target" ];