guixsd-config

GuixSD configs for my systems
Log | Files | Refs

commit 312ff22b602ce0fd22b6eb5373fd087e1f6f142e
parent 443ddcb02e3d977b5598439e90bd4e762c52793f
Author: vin <git@vineetk.net>
Date:   Tue, 14 Apr 2026 11:41:02 -0400

home: replace XDG_* environment variables with home-xdg-base-directories

it also gets rid of the duplicate definition warning on each guix home
reconfigure run

Diffstat:
Mepistemia/home/config.scm | 14+++++++++-----
1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/epistemia/home/config.scm b/epistemia/home/config.scm @@ -41,6 +41,7 @@ #:use-module (gnu home services desktop) #:use-module (gnu home services dotfiles) #:use-module (gnu home services sound) + #:use-module (gnu home services xdg) #:use-module (guix channels) #:use-module (guix packages) #:use-module (guix gexp) @@ -149,11 +150,6 @@ '(("PS1" . "\\h$ ") ("PS2" . "> ") ("PATH" . "$HOME/bin:$PATH") - ("XDG_CACHE_HOME" . "$HOME/.cache") - ("XDG_CONFIG_HOME" . "$HOME/.config") - ("XDG_DATA_HOME" . "$HOME/.local/share") - ("XDG_STATE_HOME" . "$HOME/.local/state") - ("XDG_RUNTIME_DIR" . "$XDG_STATE_HOME/runtime") ("BROWSER" . "qutebrowser") ("EDITOR" . "emacsclient") ("VISUAL" . "emacsclient") @@ -168,6 +164,14 @@ ("KASI_DECRYPT" . "age -d -i $AGE_KEY") ("KASI_ENCRYPT" . "age -R $AGE_PUB") ("CRAWL_DIR" . "$XDG_DATA_HOME/crawl"))) + (simple-service 'xdg-base-dirs-config + home-xdg-base-directories-service-type + (home-xdg-base-directories-configuration + (cache-home "$HOME/.cache") + (config-home "$HOME/.config") + (data-home "$HOME/.local/share") + (state-home "$HOME/.local/state") + (runtime-dir "$HOME/.local/state/runtime"))) (simple-service 'ensure-xdg-runtime-dir home-activation-service-type (with-imported-modules '((guix build utils))