refactor: modules/users: dont hardcode $HOME
This commit is contained in:
@@ -234,12 +234,12 @@ let
|
||||
# some of my program-specific environment variables depend on some of these being set,
|
||||
# hence do that early:
|
||||
# TODO: consider moving XDG_RUNTIME_DIR to $HOME/.run
|
||||
environment.HOME = "/home/${name}";
|
||||
environment.HOME = config.home;
|
||||
environment.XDG_RUNTIME_DIR = "/run/user/${name}";
|
||||
# XDG_DATA_DIRS gets set by shell init somewhere, but needs to be explicitly set here so it's available to services too.
|
||||
environment.XDG_DATA_DIRS = "/etc/profiles/per-user/${name}/share:/run/current-system/sw/share";
|
||||
# fs.".config/environment.d/10-sane-baseline.conf".symlink.text = ''
|
||||
# HOME=/home/${name}
|
||||
# HOME=${config.home}
|
||||
# XDG_RUNTIME_DIR=/run/user/${name}
|
||||
# '';
|
||||
|
||||
|
Reference in New Issue
Block a user