flake/nixos/environment.nix
cswimr 54fcd874f1
disable NIXOS_OZONE_WL
this causes an issue with VSCode, see #5
2024-11-17 16:04:58 -05:00

18 lines
501 B
Nix

{ lib, ... }: {
environment.variables = {
EDITOR = lib.mkDefault (if builtins.hasAttr "SSH_CONNECTION"
builtins.currentSystemEnvironment then
"nvim"
else
"code");
# XDG settings
XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config";
};
environment.sessionVariables = {
# Enable Ozone Wayland support in Chromium and Electron applications
#TODO - This causes issues with VSCode until the November 2024 release.
# NIXOS_OZONE_WL = lib.mkDefault "1";
};
}