I'm launching long-running apps (like firefox and alacritty) using xremap. But when I change something in my home-manager config related to xremap it restarts the service after a rebuild, which closes all apps that I've launched with it.
If I stop the service and run /nix/store/.../bin/xremap /nix/store/.../config.yml this behavior is fixed and closing xremap does not close the apps it has launched.
As a way to circumvent that behavior in the meantime, I've using
launch = [ "systemd-run" "--user" "--scope" "command" ] instead of just launch = [ "command" ]
I'm launching long-running apps (like firefox and alacritty) using xremap. But when I change something in my home-manager config related to xremap it restarts the service after a rebuild, which closes all apps that I've launched with it.
If I stop the service and run
/nix/store/.../bin/xremap /nix/store/.../config.ymlthis behavior is fixed and closing xremap does not close the apps it has launched.As a way to circumvent that behavior in the meantime, I've using
launch = [ "systemd-run" "--user" "--scope" "command" ]instead of justlaunch = [ "command" ]