home-manager/modules
polykernel 7cb118c9d2
xdg: coerce XDG base directories settings to strings
Currently, when a custom path is set for any of the XDG base
directories (i.e XDG_DATA_HOME, XDG_CONFIG_HOME, ...), the path will
be coerced into a string when consumed by other options such as
xdg.configFile et al. This causes the the given path to be copied to
the nix store which in the case of xdg.configFile et al, translate to
the file being written there as it is a absolute path.

Interestingly, the default base directories all work as intended as
they are encoded as a string.

This commit converts the option to a string regardless of whether it
is a primitive path or a string encoded path. This allows downstream
consumers to use the base directories in arbitrary way without
accidentally copying the content of the directory to the store. It is
implemented in a similar manner as how home.homeDirectory undergoes
string conversion.

The existing file-attr-name test was modified to test also custom xdg
base directories, and the home.file generation test was removed as
there is a dedicated test for this case in the files module. The test
case was renamed to file-gen to better reflect the new scope.
2021-09-21 21:29:44 +02:00
..
accounts email: allow null certificatesFile 2021-08-10 00:12:13 +02:00
config Move platform check into modules 2021-07-18 20:43:22 +02:00
i18n/input-method Move platform check into modules 2021-07-18 20:43:22 +02:00
lib htop: add self as maintainer 2021-08-16 23:20:30 +02:00
lib-bash home-environment: use `declare -gr` in activation init 2021-07-27 23:50:33 +02:00
misc xdg: coerce XDG base directories settings to strings 2021-09-21 21:29:44 +02:00
programs lieer: change settings to freeform type 2021-09-14 23:59:56 +02:00
services gpg-agent: remove unnecessary IFD 2021-09-15 23:09:02 +02:00
targets generic-linux: add system fpaths for zsh 2021-09-07 23:47:49 +02:00
default.nix modules: don't reference deprecated stdenv.lib (#1770) 2021-02-01 09:52:05 -05:00
files.nix files: clarify "Please move the above files" message 2021-09-15 00:25:00 +02:00
home-environment.nix nixos: add nix package to activation script path 2021-07-23 23:18:15 +02:00
manual.nix docs: rename "doc" directory to "docs" 2021-08-17 19:35:11 +02:00
modules.nix bottom: add module 2021-09-14 23:40:21 +02:00
systemd-activate.rb Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd-activate.sh Revert "systemd: use sd-switch" 2020-08-04 19:38:14 +02:00
systemd.nix Remove a few format exceptions 2021-07-18 23:34:50 +02:00
xcursor.nix Move platform check into modules 2021-07-18 20:43:22 +02:00
xresources.nix files: move dry run logic out of onChange hooks 2021-08-17 22:14:32 +02:00
xsession.nix xsession: set default value of windowManager.command to handle display manager parameter (#2123) 2021-08-17 21:44:23 -04:00