diff --git a/hosts/common/programs/assorted.nix b/hosts/common/programs/assorted.nix index a50e71469..1076aaccc 100644 --- a/hosts/common/programs/assorted.nix +++ b/hosts/common/programs/assorted.nix @@ -1200,7 +1200,7 @@ in . "$HOME/.profile" fi - dbus_file="$XDG_RUNTIME_DIR/bus" + dbus_file="$XDG_RUNTIME_DIR/dbus/bus" if [ -z "$DBUS_SESSION_BUS_ADDRESS" ] && [ -e "$dbus_file" ]; then export DBUS_SESSION_BUS_ADDRESS="unix:path=$dbus_file" fi diff --git a/modules/users/default.nix b/modules/users/default.nix index 8bba46837..490756150 100644 --- a/modules/users/default.nix +++ b/modules/users/default.nix @@ -240,6 +240,10 @@ let # XDG_RUNTIME_DIR=/run/user/${name} # ''; + # allow env vars to refer to eachother (just re-evaluate them a couple times to compute a fix point, right? :P) + fs.".config/environment.d/21-sane-nixos-users-fix1.conf".symlink.target = "20-sane-nixos-users.conf"; + fs.".config/environment.d/22-sane-nixos-users-fix2.conf".symlink.target = "20-sane-nixos-users.conf"; + fs.".config/environment.d/20-sane-nixos-users.conf".symlink.text = let env = lib.mapAttrsToList