1
1
Fork 0

nautilus: disable service by default

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2025-02-12 12:31:50 -06:00
parent ad27dbd732
commit 77c7207d8b
Signed by: Myned
GPG key ID: C7224454F7881A34

View file

@ -11,7 +11,7 @@ in {
enable = mkOption {default = false;};
git = mkOption {default = false;};
index = mkOption {default = true;};
service = mkOption {default = true;};
service = mkOption {default = false;};
terminal = mkOption {default = "ghostty";};
};
@ -44,6 +44,7 @@ in {
home-manager.users.${config.custom.username} = {
# HACK: Partially fix startup delay with background service until module is available
# BUG: --gapplication-service always exits without a window
systemd.user.services = let
nautilus = "${pkgs.nautilus}/bin/nautilus";
turtle_service = "${pkgs.turtle}/bin/turtle_service";
@ -56,7 +57,7 @@ in {
BusName = "org.gnome.Nautilus";
ExecStart = "${nautilus} --gapplication-service";
ExecStop = "${nautilus} --quit";
Restart = "always"; #!! Benign exceptions cause nautilus to exit
Restart = "always"; #!! Exits when last window is closed
Type = "dbus";
# HACK: Allow child processes to live, otherwise applications launched through service are killed on stop