From a27c091860b9bd1b7e0fbe9223a17061623eb96b Mon Sep 17 00:00:00 2001 From: cswimr Date: Sun, 17 Nov 2024 14:38:38 -0500 Subject: [PATCH] set `XDG_CONFIG_HOME` and `NIXOS_OZONE_WL` environment variables --- nixos/environment.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/environment.nix b/nixos/environment.nix index 30ffb65..29c6768 100644 --- a/nixos/environment.nix +++ b/nixos/environment.nix @@ -5,5 +5,13 @@ "nvim" else "code"); + + # XDG settings + XDG_CONFIG_HOME = lib.mkDefault "$HOME/.config"; + }; + + environment.sessionVariables = { + # Enable Ozone Wayland support in Chromium and Electron applications + NIXOS_OZONE_WL = lib.mkDefault "1"; }; }