From b1918cddc939f0a4e85cf5a49571220832ba1b0c Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Wed, 29 Apr 2026 17:55:27 +0200 Subject: Fixed discord crashing because of openasar trying to edit the nix store --- home/mun/programs/nixcord.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/home/mun/programs/nixcord.nix b/home/mun/programs/nixcord.nix index 802ccc3..d39f6e3 100644 --- a/home/mun/programs/nixcord.nix +++ b/home/mun/programs/nixcord.nix @@ -11,4 +11,34 @@ equicord.enable = true; }; }; + + home.file.".config/discord/settings.json" = { + force = true; + text = builtins.toJSON { + SKIP_HOST_UPDATE = true; + BACKGROUND_COLOR = "#000000"; + offloadAdmControls = true; + enableHardwareAcceleration = true; + chromiumSwitches = {}; + IS_MAXIMIZED = false; + IS_MINIMIZED = false; + WINDOW_BOUNDS = { + x = 0; + y = 0; + width = 1708; + height = 879; + }; + asyncVideoInputDeviceInit = false; + MINIMIZE_TO_TRAY = false; + enableLibOpenH264Electron = false; + DANGEROUS_ENABLE_DEVTOOLS_ONLY_ENABLE_IF_YOU_KNOW_WHAT_YOURE_DOING = true; + openH264Enabled = true; + openasar = { + setup = true; + cmdPreset = "battery"; + quickstart = true; + skipModuleUpdate = true; # <-- the fix + }; + }; + }; } -- cgit v1.2.3