diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-04-29 17:55:27 +0200 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-04-29 17:55:27 +0200 |
| commit | b1918cddc939f0a4e85cf5a49571220832ba1b0c (patch) | |
| tree | af5e758bf325627257d3509841288700c7806574 | |
| parent | 1310eb38f095268f72de93257373782b2e4522f2 (diff) | |
Fixed discord crashing because of openasar trying to edit the nix store
| -rw-r--r-- | home/mun/programs/nixcord.nix | 30 |
1 files changed, 30 insertions, 0 deletions
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 + }; + }; + }; } |
