nautilus: disable service by default
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
ad27dbd732
commit
77c7207d8b
1 changed files with 3 additions and 2 deletions
|
@ -11,7 +11,7 @@ in {
|
||||||
enable = mkOption {default = false;};
|
enable = mkOption {default = false;};
|
||||||
git = mkOption {default = false;};
|
git = mkOption {default = false;};
|
||||||
index = mkOption {default = true;};
|
index = mkOption {default = true;};
|
||||||
service = mkOption {default = true;};
|
service = mkOption {default = false;};
|
||||||
terminal = mkOption {default = "ghostty";};
|
terminal = mkOption {default = "ghostty";};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -44,6 +44,7 @@ in {
|
||||||
|
|
||||||
home-manager.users.${config.custom.username} = {
|
home-manager.users.${config.custom.username} = {
|
||||||
# HACK: Partially fix startup delay with background service until module is available
|
# HACK: Partially fix startup delay with background service until module is available
|
||||||
|
# BUG: --gapplication-service always exits without a window
|
||||||
systemd.user.services = let
|
systemd.user.services = let
|
||||||
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
||||||
turtle_service = "${pkgs.turtle}/bin/turtle_service";
|
turtle_service = "${pkgs.turtle}/bin/turtle_service";
|
||||||
|
@ -56,7 +57,7 @@ in {
|
||||||
BusName = "org.gnome.Nautilus";
|
BusName = "org.gnome.Nautilus";
|
||||||
ExecStart = "${nautilus} --gapplication-service";
|
ExecStart = "${nautilus} --gapplication-service";
|
||||||
ExecStop = "${nautilus} --quit";
|
ExecStop = "${nautilus} --quit";
|
||||||
Restart = "always"; #!! Benign exceptions cause nautilus to exit
|
Restart = "always"; #!! Exits when last window is closed
|
||||||
Type = "dbus";
|
Type = "dbus";
|
||||||
|
|
||||||
# HACK: Allow child processes to live, otherwise applications launched through service are killed on stop
|
# HACK: Allow child processes to live, otherwise applications launched through service are killed on stop
|
||||||
|
|
Loading…
Add table
Reference in a new issue