diff --git a/homeManagerModules/apps/thunar/default.nix b/homeManagerModules/apps/thunar/default.nix index f916acba..1f83f4e4 100644 --- a/homeManagerModules/apps/thunar/default.nix +++ b/homeManagerModules/apps/thunar/default.nix @@ -14,11 +14,5 @@ xfce.tumbler xfce.xfconf ]; - - xdg.configFile."xfce4/helpers.rc".text = '' - FileManager=thunar - TerminalEmulator=kitty - WebBrowser=firefox - ''; }; } diff --git a/homeManagerModules/defaultApps.nix b/homeManagerModules/defaultApps.nix index 06c8fc2b..b22c9a57 100644 --- a/homeManagerModules/defaultApps.nix +++ b/homeManagerModules/defaultApps.nix @@ -29,13 +29,19 @@ in { ]; sessionVariables = { - BROWSER = "${lib.getExe cfg.webBrowser}"; - EDITOR = "${lib.getExe cfg.terminalEditor}"; - TERMINAL = "${lib.getExe cfg.terminal}"; + BROWSER = "${builtins.baseNameOf (lib.getExe cfg.webBrowser)}"; + EDITOR = "${builtins.baseNameOf (lib.getExe cfg.terminalEditor)}"; + TERMINAL = "${builtins.baseNameOf (lib.getExe cfg.terminal)}"; }; }; xdg = { + configFile."xfce4/helpers.rc".text = '' + FileManager=${builtins.baseNameOf (lib.getExe cfg.fileManager)} + TerminalEmulator=${builtins.baseNameOf (lib.getExe cfg.terminal)} + WebBrowser=${builtins.baseNameOf (lib.getExe cfg.webBrowser)} + ''; + mimeApps = { enable = true;