summary refs log tree commit diff
diff options
context:
space:
mode:
authorTor Hedin Brønner <torhedinbronner@gmail.com>2018-05-21 13:42:51 +0200
committerTor Hedin Brønner <torhedinbronner@gmail.com>2018-05-22 02:26:21 +0200
commit17e0e67930e794e72330b9ce86f6e3a034b1f31c (patch)
tree38d5b704af03d96f7f5e8759b998743488ba8c58
parentd9bdd77eb59079f1ebefb522325cf117ae575982 (diff)
downloadnixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.tar
nixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.tar.gz
nixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.tar.bz2
nixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.tar.lz
nixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.tar.xz
nixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.tar.zst
nixpkgs-17e0e67930e794e72330b9ce86f6e3a034b1f31c.zip
nixos/flatpak: add flatpak's XDG_DATA_DIRS to the environment
We use environment.profiles to add both the PATH and XDG_DATA_DIRS.
-rw-r--r--nixos/modules/services/desktops/flatpak.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/nixos/modules/services/desktops/flatpak.nix b/nixos/modules/services/desktops/flatpak.nix
index 024dc65629a..cfca1893bd8 100644
--- a/nixos/modules/services/desktops/flatpak.nix
+++ b/nixos/modules/services/desktops/flatpak.nix
@@ -40,12 +40,12 @@ in {
 
     systemd.packages = [ pkgs.flatpak pkgs.xdg-desktop-portal ] ++ cfg.extraPortals;
 
-    environment.variables = {
-      PATH = [
-        "$HOME/.local/share/flatpak/exports/bin"
-        "/var/lib/flatpak/exports/bin"
-      ];
+    environment.profiles = [
+      "$HOME/.local/share/flatpak/exports"
+      "/var/lib/flatpak/exports"
+    ];
 
+    environment.variables = {
       XDG_DESKTOP_PORTAL_PATH = map (p: "${p}/share/xdg-desktop-portal/portals") cfg.extraPortals;
     };
   };