1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-07 23:03:57 +00:00
ultima/modules/nixos/misc/variables/default.nix

27 lines
665 B
Nix
Raw Normal View History

2024-11-21 09:24:15 +00:00
{ lib, config, userName, ... }:
with lib;
let cfg = config.module.misc.variables;
in {
options = { module.misc.variables = { enable = mkEnableOption ""; }; };
config = mkIf cfg.enable {
environment.variables = {
QT_QPA_PLATFORM = "wayland";
SDL_VIDEODRIVER = "wayland";
CLUTTER_BACKEND = "wayland";
GDK_BACKEND = "wayland";
NIXPKGS_ALLOW_UNFREE = "1";
NIXPKGS_ALLOW_INSECURE = "1";
MOZ_ENABLE_WAYLAND = "1";
XDG_SESSION_TYPE = "wayland";
NIXOS_OZONE_WL = "1";
MOZ_LEGACY_PROFILES = "1";
QT_QPA_PLATFORMTHEME = "gtk3";
TDESKTOP_I_KNOW_ABOUT_GTK_INCOMPATIBILITY = "1";
};
};
}