aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/xdg
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-23 00:56:24 +0530
committerArpit Chakladar <arpitchakladar+git@gmail.com>2026-07-23 00:56:24 +0530
commit2ad7b06ced0ffa39d20e6be41466e5bd834ee956 (patch)
tree86bc522072c09c80098bff8854d2377137a6c39c /modules/desktop/xdg
parenta61001ad8696f6d9a5ebe0f18a71d747941ec9d0 (diff)
downloadhome-manager-config-2ad7b06ced0ffa39d20e6be41466e5bd834ee956.tar.gz
home-manager-config-2ad7b06ced0ffa39d20e6be41466e5bd834ee956.zip
feat(w3m): add module with desktop entry + integrate into neomutt
- modules/web/w3m: enable/package options, desktop entry via kitty, assertion - modules/web/w3m: delegate to programs.w3m under the hood - modules/web/w3m: default package to programs.w3m.finalPackage - modules/desktop/xdg: add portal config with common.default = "*" - neomutt/nix: use lib.getExe' config.web.w3m.package for w3m refs - neomutt/assertions: add w3m dependency assertion - users/arpit: enable web.w3m
Diffstat (limited to 'modules/desktop/xdg')
-rw-r--r--modules/desktop/xdg/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/modules/desktop/xdg/default.nix b/modules/desktop/xdg/default.nix
new file mode 100644
index 0000000..4ccefc4
--- /dev/null
+++ b/modules/desktop/xdg/default.nix
@@ -0,0 +1,25 @@
+# xdg - XDG Desktop Portal configuration
+{
+ config,
+ lib,
+ pkgs,
+ ...
+}:
+{
+ config = lib.mkIf config.desktop.enable {
+ xdg.portal = {
+ enable = true;
+ extraPortals = with pkgs; [
+ xdg-desktop-portal-termfilechooser
+ xdg-desktop-portal-gtk
+ ];
+ config.common = {
+ default = [
+ "gtk"
+ ];
+ "org.freedesktop.impl.portal.FileChooser" = [ "termfilechooser" ];
+ };
+ xdgOpenUsePortal = true;
+ };
+ };
+}