From 3ff656c17d42aa2ea2c5d5667939d554a23cda10 Mon Sep 17 00:00:00 2001 From: jay Date: Sun, 29 Jun 2025 15:09:17 -0400 Subject: [PATCH] Add environment variables. --- nodes/hosts/common/configuration.nix | 1 + nodes/hosts/common/system/environment.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 nodes/hosts/common/system/environment.nix diff --git a/nodes/hosts/common/configuration.nix b/nodes/hosts/common/configuration.nix index 1460343..1b32513 100644 --- a/nodes/hosts/common/configuration.nix +++ b/nodes/hosts/common/configuration.nix @@ -22,6 +22,7 @@ ./services/sound.nix ./services/xserver.nix ./system/bluetooth.nix + ./system/environment.nix ./system/locale.nix ./system/security.nix ./system/time.nix diff --git a/nodes/hosts/common/system/environment.nix b/nodes/hosts/common/system/environment.nix new file mode 100644 index 0000000..b7749cb --- /dev/null +++ b/nodes/hosts/common/system/environment.nix @@ -0,0 +1,18 @@ +{ pkgs, ... }: { + + environment = { + # Optional, hint electron apps to use wayland: + sessionVariables = { + NIXOS_OZONE_WL = "1"; + STEAM_EXTRA_COMPAT_TOOLS_PATHS = "/home/jay/.steam/root/compatibilitytools.d"; + }; + + shellAliases = { + ls = "lsd -la"; + ryujinx = "flatpak run io.github.ryubing.Ryujinx"; + }; + + # Get plasma integration with browsers to work better. + etc."chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json".source = "${pkgs.kdePackages.plasma-browser-integration}/etc/chromium/native-messaging-hosts/org.kde.plasma.browser_integration.json"; + }; +}