mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Windows/Wine] make wine package configurable
This commit is contained in:
parent
6c9bf18d43
commit
250820cb82
1 changed files with 11 additions and 3 deletions
|
|
@ -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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue