Auto-commit: 2026-01-06 03:12:40

This commit is contained in:
2026-01-06 03:12:40 +00:00
parent 1d643e1e27
commit 02277ba080

View File

@@ -1,14 +1,31 @@
{ nixosConfig, lib, pkgs, inputs, ... }:
let
cfg = nixosConfig.my.desktop.vesktop;
unstablePkgs =
inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system};
vesktopPatched =
unstablePkgs.vesktop.overrideAttrs (old: {
postPatch =
(old.postPatch or "")
+ ''
# Disable electron fuses incompatible with Nix sandbox
if grep -q '"fuses"' package.json; then
substituteInPlace package.json \
--replace '"fuses": true' '"fuses": false'
fi
'';
}).override {
withMiddleClickScroll = true;
};
in
{
config = lib.mkIf cfg.enable {
programs.vesktop = {
enable = true;
package = inputs.nixpkgs-unstable.legacyPackages.${pkgs.stdenv.hostPlatform.system}.vesktop.override {
withMiddleClickScroll = true;
};
package = vesktopPatched;
settings = {
arRPC = true;
tray = true;