Skip to content

Commit 98e7383

Browse files
committed
fix(desktop/xdg): enable xdg home dirs, add XDG_DESKTOP_DIR (for JUCE-based audio plugins)
1 parent ecc1403 commit 98e7383

File tree

3 files changed

+18
-10
lines changed

3 files changed

+18
-10
lines changed

modules/desktop/core/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
./adb.nix
1111
./wallpaper.nix
1212
./kvm.nix
13-
./xdg-portal.nix
13+
./xdg.nix
1414

1515
./rices
1616
./guiServers

modules/desktop/core/xdg-portal.nix

Lines changed: 0 additions & 9 deletions
This file was deleted.

modules/desktop/core/xdg.nix

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{ pkgs, config, lib, user, ... }: {
2+
config = lib.mkIf config.modules.desktop.enable {
3+
home-manager.users.${user} = {
4+
xdg.enable = true;
5+
};
6+
7+
environment.sessionVariables = {
8+
"XDG_DOCUMENTS_DIR" = "/home/${user}/.local/documents";
9+
};
10+
11+
xdg.portal = {
12+
enable = true;
13+
config.common.default = "*";
14+
extraPortals = [ pkgs.xdg-desktop-portal-gtk ];
15+
};
16+
};
17+
}

0 commit comments

Comments
 (0)