nix-dotfiles/modules/software/tools/wine.nix
2026-06-07 23:15:03 -07:00

18 lines
521 B
Nix

{ lib, config, ... }:
with lib;
let
cfg = config.modules.software.tools.wine;
in {
options.modules.software.tools.wine = {
enable = mkEnableOption "Enable wine, a compatibility layer to run Windows applications on Linux";
};
config = mkIf cfg.enable {
hm.home.packages = with pkgs; [ wineWow64Packages.waylandFull winetricks ];
# enable windows NT sync primitive driver (semaphores, mutexes, etc.)
# improves performance on wine 11+ and proton 11+
boot.kernelModules = [ "ntsync" ];
};
}