fix syntax for env vars

This commit is contained in:
jacekpoz 2024-02-29 00:48:40 +01:00
parent 0d77b0d6a5
commit 1fb97e7272
No known key found for this signature in database
GPG key ID: 94E812A8B12AAE3C
2 changed files with 15 additions and 19 deletions

View file

@ -77,18 +77,16 @@
extraGroups = [ "networkmanager" "libvirtd" "video" ];
};
environment = {
sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_DRM_DEVICE = "/dev/dri/card0";
environment.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_DRM_DEVICE = "/dev/dri/card0";
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
#NIXOS_OZONE_WL = "1";
#NIXOS_OZONE_WL = "1";
#WLR_DRM_DEVICES = "/dev/dri/card0:/dev/dri/card1";
#DRI_PRIME = "1";
};
#WLR_DRM_DEVICES = "/dev/dri/card0:/dev/dri/card1";
#DRI_PRIME = "1";
};
hardware = {

View file

@ -98,20 +98,18 @@
extraGroups = [ "networkmanager" "libvirtd" ];
};
environment = {
sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_DRM_DEVICE = "/dev/dri/card0";
environment.sessionVariables = {
MOZ_ENABLE_WAYLAND = "1";
MOZ_DRM_DEVICE = "/dev/dri/card0";
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
CHROME_EXECUTABLE = "${pkgs.ungoogled-chromium}/bin/chromium";
MALLOC_PERTURB_ = "$(($RANDOM % 255 + 1))";
MALLOC_PERTURB_ = "$(($RANDOM % 255 + 1))";
#NIXOS_OZONE_WL = "1";
#NIXOS_OZONE_WL = "1";
#WLR_DRM_DEVICES = "/dev/dri/card0:/dev/dri/card1";
#DRI_PRIME = "1";
};
#WLR_DRM_DEVICES = "/dev/dri/card0:/dev/dri/card1";
#DRI_PRIME = "1";
};
services = {