feat(wine): use bottles

This commit is contained in:
2025-06-29 15:06:42 +08:00
parent a07742a206
commit 1c6708bad5
3 changed files with 26 additions and 1 deletions

View File

@@ -158,7 +158,6 @@
"bin"
"workspace"
"WineApps"
"Virt"
".cache"

25
modules/desktop/wine.nix Normal file
View File

@@ -0,0 +1,25 @@
{
config,
lib,
pkgs,
...
}:
lib.my.makeSwitch {
inherit config;
default = true;
optionName = "wine";
optionPath = [
"desktop"
"wine"
];
config' = {
my.home.home.packages = with pkgs; [
wineWayland
proton-ge-custom
bottles
];
my.persist.homeDirs = [
".local/share/bottles"
];
};
}

View File

@@ -7,6 +7,7 @@
infuse prev {
cage.__output.patches.__append = [ ./cage-specify-output-name.patch ];
matrix-synapse.__assign = final.stable.matrix-synapse;
bottles.__input.removeWarningPopup.__assign = true;
qq.__output.preInstall.__append = ''
gappsWrapperArgs+=(
--add-flags "\''${NIXOS_OZONE_WL:+\''${WAYLAND_DISPLAY:+--wayland-text-input-version=3}}"