2024-12-17 12:10:05 +00:00
|
|
|
{
|
|
|
|
x,
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
2024-11-21 09:24:15 +00:00
|
|
|
with lib;
|
2024-12-09 01:15:55 +00:00
|
|
|
with x;
|
2024-12-17 12:10:05 +00:00
|
|
|
let
|
|
|
|
cfg = config.module.misc.variables;
|
|
|
|
in
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
module.misc.variables = {
|
|
|
|
enable = mkBool;
|
|
|
|
};
|
|
|
|
};
|
2024-11-21 09:24:15 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|