From 250820cb82ac18b338198522981e4f85967c846d Mon Sep 17 00:00:00 2001 From: Antoine Viallon Date: Thu, 27 Apr 2023 18:15:48 +0200 Subject: [PATCH] [Windows/Wine] make wine package configurable --- windows/wine.nix | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/windows/wine.nix b/windows/wine.nix index c45752f..6e05e9a 100644 --- a/windows/wine.nix +++ b/windows/wine.nix @@ -1,13 +1,21 @@ { config, pkgs, lib, ... }: with lib; -{ +let + cfg = config.aviallon.windows.wine; +in { options.aviallon.windows.wine = { enable = mkEnableOption "windows executable support on Linux"; + package = mkOption { + description = "Wine package to use"; + type = types.package; + default = pkgs.wineWowPackages.waylandFull; + example = pkgs.winePackages.stable; + }; }; - config = { + config = mkIf cfg.enable { environment.systemPackages = with pkgs; [ bottles - wineWowPackages.waylandFull + cfg.package ]; }; }