nautilus: enable tracker and partially fix startup delay
Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
parent
79194e4138
commit
693f313e20
2 changed files with 30 additions and 9 deletions
|
@ -226,7 +226,7 @@ in {
|
||||||
(key "B" "Super" "exec" "[group new lock; tile] ${firefox-esr}")
|
(key "B" "Super" "exec" "[group new lock; tile] ${firefox-esr}")
|
||||||
(key "C" "Super" "exec" codium)
|
(key "C" "Super" "exec" codium)
|
||||||
(key "E" "Super" "exec" gnome-text-editor)
|
(key "E" "Super" "exec" gnome-text-editor)
|
||||||
(key "F" "Super" "exec" nautilus)
|
(key "F" "Super" "exec" "${nautilus} --new-window")
|
||||||
(key "G" "Super" "workspace" "name:game")
|
(key "G" "Super" "workspace" "name:game")
|
||||||
(key "G" "Super+Alt" "workspace" "name:gamescope")
|
(key "G" "Super+Alt" "workspace" "name:gamescope")
|
||||||
(key "G" "Super+Ctrl+Alt" "exec" "${pkill} gamescope")
|
(key "G" "Super+Ctrl+Alt" "exec" "${pkill} gamescope")
|
||||||
|
|
|
@ -5,14 +5,25 @@
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
with lib; let
|
with lib; let
|
||||||
|
nautilus = "${pkgs.nautilus}/bin/nautilus";
|
||||||
|
|
||||||
cfg = config.custom.programs.nautilus;
|
cfg = config.custom.programs.nautilus;
|
||||||
in {
|
in {
|
||||||
options.custom.programs.nautilus.enable = mkOption {default = false;};
|
options.custom.programs.nautilus.enable = mkOption {default = false;};
|
||||||
|
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
|
# TODO: Use module when completed
|
||||||
|
# https://github.com/NixOS/nixpkgs/pull/319535
|
||||||
|
environment.systemPackages = [pkgs.nautilus];
|
||||||
|
|
||||||
services = {
|
services = {
|
||||||
gnome.sushi.enable = true; # Quick preview with spacebar
|
|
||||||
gvfs.enable = true; # Trash dependency
|
gvfs.enable = true; # Trash dependency
|
||||||
|
|
||||||
|
gnome = {
|
||||||
|
sushi.enable = true; # Quick preview with spacebar
|
||||||
|
tracker.enable = true; # File indexing
|
||||||
|
tracker-miners.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# Alternative fix to services.gnome.core-utilities.enable
|
# Alternative fix to services.gnome.core-utilities.enable
|
||||||
|
@ -23,12 +34,22 @@ in {
|
||||||
terminal = "kitty";
|
terminal = "kitty";
|
||||||
};
|
};
|
||||||
|
|
||||||
# TODO: Use module when completed
|
home-manager.users.${config.custom.username} = {
|
||||||
# https://github.com/NixOS/nixpkgs/pull/319535
|
# HACK: Partially fix startup delay with background service until module is available
|
||||||
environment.systemPackages = with pkgs; [
|
systemd.user.services = {
|
||||||
nautilus
|
nautilus = {
|
||||||
nautilus-open-in-blackbox
|
Unit.Description = "GNOME Files Background Service";
|
||||||
nautilus-python
|
Install.WantedBy = ["graphical-session.target"];
|
||||||
];
|
|
||||||
|
Service = {
|
||||||
|
BusName = "org.gnome.Nautilus";
|
||||||
|
ExecStart = "${nautilus} --gapplication-service";
|
||||||
|
ExecStop = "${nautilus} --quit";
|
||||||
|
Restart = "on-failure";
|
||||||
|
Type = "dbus";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue