Files
cnix/users/cnst/variables/default.nix
2025-07-13 16:59:29 +02:00

28 lines
774 B
Nix

{osConfig, ...}: let
hostSpecificVariables =
if osConfig.networking.hostName == "sobotka"
then {
EDITOR = "hx";
TERM = "xterm-256color";
}
else if osConfig.networking.hostName == "bunk"
then {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
}
else {
BROWSER = "zen";
EDITOR = "hx";
TERM = "xterm-256color";
VK_ICD_FILENAMES = "/run/opengl-driver/share/vulkan/icd.d/radeon_icd.x86_64.json";
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/cnst/.steam/root/compatibilitytools.d";
QT_QPA_PLATFORM = "wayland";
XDG_SESSION_TYPE = "wayland";
};
in {
home.sessionVariables = hostSpecificVariables;
}