28 lines
538 B
Nix
28 lines
538 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}:
|
|
|
|
{
|
|
imports = [ ];
|
|
|
|
options.me = {
|
|
wine.enable = lib.mkOption {
|
|
type = lib.types.bool;
|
|
default = false;
|
|
example = true;
|
|
description = "Whether we want to install wine.";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf (config.me.wine.enable && config.me.graphical) {
|
|
environment.systemPackages = with pkgs; [
|
|
# wineWowPackages.stable # supports 32 + 64 bit
|
|
wineWowPackages.waylandFull # Supports 32 + 64 bit with native wayland support.
|
|
# winetricks
|
|
];
|
|
};
|
|
}
|