From ff657707b1e0978a7bf469e7bb16f85ef8dac8f4 Mon Sep 17 00:00:00 2001 From: marshmallow Date: Fri, 6 Sep 2024 10:45:16 +1000 Subject: [PATCH] fix: fallback to $HOME/.loca/share when $XDG_DATA_HOME is not set --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index ede0315..63d1f94 100644 --- a/flake.nix +++ b/flake.nix @@ -36,7 +36,7 @@ }); packages = forAllSystems (pkgs: let - affinityPath = "$XDG_DATA_HOME/affinity/"; + affinityPath = "$([[ -z \"$XDG_DATA_HOME\" ]] && echo \"$HOME/.local/share/affinity\" || echo \"$XDG_DATA_HOME/affinity\")"; symlink = pkgs.callPackage ./symlink.nix {}; wineUnstable =