1
1
Fork 0

nautilus: temp fix for background service

Signed-off-by: Myned <dev@bjork.tech>
This commit is contained in:
Myned 2024-11-06 12:06:38 -06:00
parent 506b2efafc
commit 7195bad13f
Signed by: myned
GPG key ID: C7224454F7881A34
4 changed files with 18 additions and 8 deletions

View file

@ -10,6 +10,7 @@ with lib; let
clipse = "${pkgs.clipse}/bin/clipse"; clipse = "${pkgs.clipse}/bin/clipse";
firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr"; firefox-esr = "${config.home-manager.users.${config.custom.username}.programs.firefox.finalPackage}/bin/firefox-esr";
left = config.home-manager.users.${config.custom.username}.home.file.".local/bin/left".source; left = config.home-manager.users.${config.custom.username}.home.file.".local/bin/left".source;
nautilus = "${pkgs.nautilus}/bin/nautilus";
pkill = "${pkgs.procps}/bin/pkill"; pkill = "${pkgs.procps}/bin/pkill";
rm = "${pkgs.coreutils}/bin/rm"; rm = "${pkgs.coreutils}/bin/rm";
sleep = "${pkgs.coreutils}/bin/sleep"; sleep = "${pkgs.coreutils}/bin/sleep";
@ -72,6 +73,9 @@ in {
"${sleep} 1 && ${clipse} --clear" # Clear clipboard history "${sleep} 1 && ${clipse} --clear" # Clear clipboard history
"${_1password} --silent" # Launch password manager in background "${_1password} --silent" # Launch password manager in background
#// "[group new; tile] ${firefox-esr}" #// "[group new; tile] ${firefox-esr}"
# HACK: Launch hidden nautilus window in lieu of background service
"[workspace special:files silent] ${nautilus}"
]; ];
# https://wiki.hyprland.org/Configuring/Variables/#xwayland # https://wiki.hyprland.org/Configuring/Variables/#xwayland

View file

@ -7,7 +7,13 @@
with lib; let with lib; let
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;};
git = mkOption {default = false;};
index = mkOption {default = true;};
service = mkOption {default = false;};
terminal = mkOption {default = "kitty";};
};
config = mkIf cfg.enable { config = mkIf cfg.enable {
# TODO: Use module when completed # TODO: Use module when completed
@ -19,8 +25,8 @@ in {
gnome = { gnome = {
sushi.enable = true; # Quick preview with spacebar sushi.enable = true; # Quick preview with spacebar
tracker.enable = true; # File indexing tracker.enable = cfg.index; # File indexing
tracker-miners.enable = true; tracker-miners.enable = cfg.index;
}; };
}; };
@ -29,7 +35,7 @@ in {
#?? echo $NAUTILUS_4_EXTENSION_DIR #?? echo $NAUTILUS_4_EXTENSION_DIR
programs.nautilus-open-any-terminal = { programs.nautilus-open-any-terminal = {
enable = true; enable = true;
terminal = "kitty"; terminal = cfg.terminal;
}; };
home-manager.users.${config.custom.username} = { home-manager.users.${config.custom.username} = {
@ -38,7 +44,7 @@ in {
nautilus = "${pkgs.nautilus}/bin/nautilus"; nautilus = "${pkgs.nautilus}/bin/nautilus";
turtle_service = "${pkgs.turtle}/bin/turtle_service"; turtle_service = "${pkgs.turtle}/bin/turtle_service";
in { in {
nautilus = { nautilus = mkIf cfg.service {
Unit.Description = "GNOME Files Background Service"; Unit.Description = "GNOME Files Background Service";
Install.WantedBy = ["graphical-session.target"]; Install.WantedBy = ["graphical-session.target"];
@ -51,10 +57,10 @@ in {
}; };
}; };
# TODO: Check for official service # TODO: Check for module
# BUG: Benign AttributeError when scanning on nautilus launch # BUG: Benign AttributeError when scanning on nautilus launch
# Git integration dependency # Git integration dependency
turtle = { turtle = mkIf cfg.git {
Unit.Description = "Turtle Background Service"; Unit.Description = "Turtle Background Service";
Install.WantedBy = ["graphical-session.target"]; Install.WantedBy = ["graphical-session.target"];

View file

@ -180,6 +180,7 @@ in {
format-icons = { format-icons = {
android = ""; android = "";
dropdown = "󰞷"; dropdown = "󰞷";
files = "󰉋";
game = "󰊴"; game = "󰊴";
music = "󰝚"; music = "󰝚";
office = "󰈙"; office = "󰈙";

View file

@ -131,7 +131,6 @@ in {
syncthingtray # Syncthing client syncthingtray # Syncthing client
tagger # Audio file tagger tagger # Audio file tagger
telegram-desktop # Telegram client telegram-desktop # Telegram client
turtle # Git client
variety # Wallpaper changer variety # Wallpaper changer
ventoy # Image writer ventoy # Image writer
virt-viewer # Virtual machine viewer virt-viewer # Virtual machine viewer