diff options
author | LoveIsGrief <LoveIsGrief@users.noreply.github.com> | 2022-08-10 22:46:00 +0200 |
---|---|---|
committer | LoveIsGrief <loveisgrief@tuta.io> | 2022-08-17 20:37:33 +0200 |
commit | 881512e23f51f0c00f5adb58788998aca65ebea3 (patch) | |
tree | e9475e5c67cee68ff36bc8a5ad7c32449cc4f890 | |
parent | 77609c9034d53dd652d48e1ab1e27c1a088b33af (diff) | |
download | nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.tar nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.tar.gz nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.tar.bz2 nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.tar.lz nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.tar.xz nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.tar.zst nixpkgs-881512e23f51f0c00f5adb58788998aca65ebea3.zip |
x11: Source .profile and .xprofile
Other popular distros (OpenSuse, Ubuntu, Gentoo, Arch) read $HOME/.profile when starting X11 display managers. When moving to nixOS, that is then broken leading to unpredictable behavior (probably programs not working). This adds similar behavior to https://github.com/sddm/sddm/blob/develop/data/scripts/Xsession Related to #185979
-rw-r--r-- | nixos/modules/services/x11/display-managers/default.nix | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/display-managers/default.nix b/nixos/modules/services/x11/display-managers/default.nix index cc94fe7c0be..03bf5d1cd2d 100644 --- a/nixos/modules/services/x11/display-managers/default.nix +++ b/nixos/modules/services/x11/display-managers/default.nix @@ -35,6 +35,10 @@ let # Shared environment setup for graphical sessions. . /etc/profile + if test -f ~/.profile; then + source ~/.profile + fi + cd "$HOME" # Allow the user to execute commands at the beginning of the X session. |