1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-27 20:29:47 +01:00
home-manager/modules
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
..
accounts Move email account options to their owning modules 2020-06-16 00:45:20 +02:00
config i18n: various fixes 2021-01-23 16:40:25 +01:00
lib nix-index: add module (#1984) 2021-05-09 18:13:10 -04:00
lib-bash home-manager: respect NO_COLOR environment variable 2021-03-03 23:28:06 +01:00
misc xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04:00
programs nix-index: add module (#1984) 2021-05-09 18:13:10 -04:00
services Fix eval errors when i3 or sway null configs are null (#1989) 2021-05-07 15:39:10 -06:00
targets xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04:00
default.nix modules: don't reference deprecated stdenv.lib (#1770) 2021-02-01 09:52:05 -05:00
files.nix files: make sure the target file name is escaped 2020-08-29 18:22:03 +02:00
home-environment.nix home-environment: extra message on nix-env error 2021-04-29 17:58:15 +02:00
manual.nix Switch to extended Nixpkg's lib 2020-01-21 20:47:04 +01:00
modules.nix xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04: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 xdg.systemDirs: init module (#1797) 2021-05-10 20:14:42 -04:00
xcursor.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00
xresources.nix xresources: do not generate file for empty properties 2020-06-28 00:41:05 +02:00
xsession.nix Apply nixfmt on many files 2020-02-02 01:07:28 +01:00