From d2572315ca14f225ff3b41c03b0c0b670dffa3a8 Mon Sep 17 00:00:00 2001 From: Robert Helgesson Date: Wed, 1 Nov 2017 09:50:58 +0100 Subject: [PATCH] i3: use XDG configuration directory Fixes #111. --- modules/services/window-managers/i3.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/services/window-managers/i3.nix b/modules/services/window-managers/i3.nix index d224c4a4f..608e94546 100644 --- a/modules/services/window-managers/i3.nix +++ b/modules/services/window-managers/i3.nix @@ -549,12 +549,12 @@ in { home.packages = [ cfg.package ]; xsession.windowManager.command = "${cfg.package}/bin/i3"; - home.file.".config/i3/config".source = configFile; + xdg.configFile."i3/config".source = configFile; home.activation.checkI3 = dagEntryBefore [ "linkGeneration" ] '' if ! cmp --quiet \ "${configFile}" \ - "$HOME/.config/i3/config"; then + "${config.xdg.configHome}/i3/config"; then i3Changed=1 fi '';