europa: disable element-desktop's usage of the gpu

This commit is contained in:
Aaron Bieber 2023-07-16 15:17:03 -06:00
parent d3665a7121
commit 788afa4814
No known key found for this signature in database

View File

@ -103,7 +103,18 @@ in {
};
boot.binfmt.emulatedSystems = ["aarch64-linux" "riscv64-linux"];
nixpkgs.config.allowUnsupportedSystem = true;
nixpkgs.config = {
allowUnfree = true;
allowUnsupportedSystem = true;
packageOverrides = pkgs: {
element-desktop = pkgs.element-desktop.overrideAttrs (old: {
desktopItem = old.desktopItem.override (old: {
exec = "element-desktop --disable-gpu --in-process-gpu %u";
});
});
};
};
boot = {
initrd.systemd.enable = true;
@ -259,8 +270,6 @@ in {
#"docker"
];
nixpkgs.config.allowUnfree = true;
environment.sessionVariables = {
XDG_BIN_HOME = "\${HOME}/.local/bin";
XDG_CACHE_HOME = "\${HOME}/.cache";