nautilus: add turtle service to fix git integration
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
f81ff04597
commit
4140a1bb6c
1 changed files with 18 additions and 4 deletions
|
@ -5,8 +5,6 @@
|
|||
...
|
||||
}:
|
||||
with lib; let
|
||||
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
||||
|
||||
cfg = config.custom.programs.nautilus;
|
||||
in {
|
||||
options.custom.programs.nautilus.enable = mkOption {default = false;};
|
||||
|
@ -14,7 +12,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
# TODO: Use module when completed
|
||||
# https://github.com/NixOS/nixpkgs/pull/319535
|
||||
environment.systemPackages = [pkgs.nautilus];
|
||||
environment.systemPackages = with pkgs; [nautilus];
|
||||
|
||||
services = {
|
||||
gvfs.enable = true; # Trash dependency
|
||||
|
@ -36,7 +34,10 @@ in {
|
|||
|
||||
home-manager.users.${config.custom.username} = {
|
||||
# HACK: Partially fix startup delay with background service until module is available
|
||||
systemd.user.services = {
|
||||
systemd.user.services = let
|
||||
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
||||
turtle_service = "${pkgs.turtle}/bin/turtle_service";
|
||||
in {
|
||||
nautilus = {
|
||||
Unit.Description = "GNOME Files Background Service";
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
|
@ -49,6 +50,19 @@ in {
|
|||
Type = "dbus";
|
||||
};
|
||||
};
|
||||
|
||||
# Git integration dependency
|
||||
turtle = {
|
||||
Unit.Description = "Turtle Background Service";
|
||||
Install.WantedBy = ["graphical-session.target"];
|
||||
|
||||
Service = {
|
||||
BusName = "de.philippun1.turtle";
|
||||
ExecStart = turtle_service;
|
||||
Restart = "no";
|
||||
Type = "dbus";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue