1
0
Fork 0
mirror of https://git.sr.ht/~neverness/ultima synced 2025-01-06 10:53:55 +00:00
ultima/modules/nixos/misc/variables/default.nix
2024-12-09 10:15:55 +09:00

27 lines
654 B
Nix

{ x, lib, config, ... }:
with lib;
with x;
let cfg = config.module.misc.variables;
in {
options = { module.misc.variables = { enable = mkBool; }; };
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";
};
};
}