1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-27 13:39:46 +01:00

i3: use XDG configuration directory

Fixes #111.
This commit is contained in:
Robert Helgesson 2017-11-01 09:50:58 +01:00
parent 467b774d13
commit d2572315ca
No known key found for this signature in database
GPG key ID: C3DB11069E65DC86

View file

@ -549,12 +549,12 @@ in
{ {
home.packages = [ cfg.package ]; home.packages = [ cfg.package ];
xsession.windowManager.command = "${cfg.package}/bin/i3"; 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" ] '' home.activation.checkI3 = dagEntryBefore [ "linkGeneration" ] ''
if ! cmp --quiet \ if ! cmp --quiet \
"${configFile}" \ "${configFile}" \
"$HOME/.config/i3/config"; then "${config.xdg.configHome}/i3/config"; then
i3Changed=1 i3Changed=1
fi fi
''; '';