home-manager/modules/misc
Tad Fisher 23769994e8
xdg.systemDirs: init module (#1797)
There is a need to manage XDG Base Directory system directory
environment variables in Home Manager modules. There is an existing
mechanism in `targets.genericLinux.extraXdgDataDirs', but this does not
apply to NixOS systems.

Furthermore, it is important that `XDG_CONFIG_DIRS' and `XDG_DATA_DIRS'
are set in both login shells (to support getty and SSH sessions) as well
as the systemd user manager (to propagate them to user services and
desktop environments).

The first need is addressed by adding the `xdg.systemDirs' module, which
configures lists of directory names for both `config' and `data'
directories. These are then set in
`$XDG_CONFIG_DIR/environment.d/10-home-manager.conf' and picked up by
the systemd user manager.

To make these, and other variables set in
`systemd.user.sessionVariables', available in login shells, an
additional step is added to `etc/profile.d/hm-session-vars.sh' which
exports the result of
`user-environment-generators/30-systemd-environment-d-generator' which
is shipped with systemd. The effect of this generator is to print
variables set on the systemd user manager such that shells can import
these into their environment.
2021-05-10 20:14:42 -04:00
..
dconf.nix dconf: make sure the configuration directory exists 2021-01-21 20:35:03 +01:00
debug.nix debug: add module 2020-03-07 15:03:44 +01:00
fontconfig.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
gtk.nix gtk2: allow configuration of gtkrc file 2021-04-30 22:56:56 +02:00
lib.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
news.nix xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04:00
nixpkgs.nix nixpkgs: take Nixpkgs path from argument 2020-08-19 00:33:25 +02:00
numlock.nix numlock: add test 2020-09-18 19:35:19 +02:00
pam.nix pam: add note about future deprecation 2021-01-01 09:51:26 +01:00
qt.nix qt: add qt.style option (#1839) 2021-03-03 22:20:17 -05:00
submodule-support.nix doc: surround name? with fancier characters 2019-09-01 21:28:40 +02:00
tmpfiles.nix tmpfiles: add module 2020-05-16 13:32:33 +02:00
version.nix home-manager: use 21.05 as next version 2021-02-05 22:09:00 +01:00
vte.nix vte: add module 2020-06-14 12:20:12 +02:00
xdg-mime-apps.nix xdg.mimeApps: use xdg.dataFile instead of home.file 2020-05-09 23:53:48 +02:00
xdg-mime.nix xdg-mime: more forcefully create directories 2020-08-29 17:33:07 +02:00
xdg-system-dirs.nix xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04:00
xdg-user-dirs.nix xdg-user-dirs: add createDirectories option 2021-04-03 17:59:52 +02:00
xdg.nix Remove some usage of config.lib.dag 2021-05-09 12:13:31 +02:00