diff options
Diffstat (limited to 'modules/home.legacy/conf/xdg/default.nix')
-rw-r--r-- | modules/home.legacy/conf/xdg/default.nix | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/modules/home.legacy/conf/xdg/default.nix b/modules/home.legacy/conf/xdg/default.nix deleted file mode 100644 index ad0cd226..00000000 --- a/modules/home.legacy/conf/xdg/default.nix +++ /dev/null @@ -1,59 +0,0 @@ -{ - pkgs, - lib, - ... -}: let - url-handler = pkgs.writeShellApplication { - name = "url-handler"; - text = builtins.readFile ./url-handler.sh; - inheritPath = false; - runtimeInputs = [ - pkgs.rofi - pkgs.libnotify - pkgs.zathura - pkgs.tskm - ]; - }; -in { - imports = [ - ./xdg_vars.nix - ]; - - xdg = { - mimeApps = { - enable = true; - defaultApplications = { - "application/pdf" = ["url-handler.desktop"]; - "application/x-pdf" = ["url-handler.desktop"]; - - "text/html" = ["url-handler.desktop"]; - "text/xml" = ["url-handler.desktop"]; - "x-scheme-handler/http" = ["url-handler.desktop"]; - "x-scheme-handler/https" = ["url-handler.desktop"]; - "x-scheme-handler/about" = ["url-handler.desktop"]; - "x-scheme-handler/unknown" = ["url-handler.desktop"]; - }; - }; - desktopEntries = { - url-handler = { - name = "url-handler"; - genericName = "Web Browser"; - exec = "${lib.getExe url-handler} %u"; - terminal = false; - categories = [ - "Application" - "Network" - "WebBrowser" - ]; - mimeType = [ - "text/html" - "text/xml" - "x-scheme-handler/http" - "x-scheme-handler/https" - "x-scheme-handler/about" - "x-scheme-handler/unknown" - ]; - }; - }; - }; -} |