diff options
Diffstat (limited to 'modules/by-name/xd/xdg/module.nix')
-rw-r--r-- | modules/by-name/xd/xdg/module.nix | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/modules/by-name/xd/xdg/module.nix b/modules/by-name/xd/xdg/module.nix index f1781d86..496ed129 100644 --- a/modules/by-name/xd/xdg/module.nix +++ b/modules/by-name/xd/xdg/module.nix @@ -1,3 +1,12 @@ +# nixos-config - My current NixOS configuration +# +# Copyright (C) 2025 Benedikt Peetz <benedikt.peetz@b-peetz.de> +# SPDX-License-Identifier: GPL-3.0-or-later +# +# This file is part of my nixos-config. +# +# You should have received a copy of the License along with this program. +# If not, see <https://www.gnu.org/licenses/gpl-3.0.txt>. { pkgs, lib, @@ -17,7 +26,9 @@ name = "url-handler"; runtimeInputs = [pkgs.rofi pkgs.libnotify pkgs.zathura pkgs.tskm]; - inheritPath = false; + + # We need to run the browser in tskm or nvim and alacritty. + inheritPath = true; text = builtins.readFile ./scripts/url-handler.sh; }; @@ -38,6 +49,8 @@ in { config = lib.mkIf cfg.enable { home-manager.users.soispha = { xdg = { + configFile."xdg-desktop-portal-termfilechooser/config".source = tfcConfigFile; + desktopEntries = { url-handler = { name = "url-handler"; @@ -107,8 +120,6 @@ in { }; }; - environment.etc."xdg/xdg-desktop-portal-termfilechooser/config".source = tfcConfigFile; - systemd.user.services.xdg-desktop-portal-termfilechooser = { serviceConfig.ExecStart = [ "" |