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";
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;
nautilus = "${pkgs.nautilus}/bin/nautilus";
pkill = "${pkgs.procps}/bin/pkill";
rm = "${pkgs.coreutils}/bin/rm";
sleep = "${pkgs.coreutils}/bin/sleep";
@ -72,6 +73,9 @@ in {
"${sleep} 1 && ${clipse} --clear" # Clear clipboard history
"${_1password} --silent" # Launch password manager in background
#// "[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

View file

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

View file

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

View file

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