2023-09-16 14:02:37 +04:00
|
|
|
{ outputs, options, config, lib, pkgs, ...}:
|
|
|
|
let
|
2023-09-16 14:00:40 +04:00
|
|
|
cfg = config.modules.desktop.game.wine;
|
2023-09-16 14:02:37 +04:00
|
|
|
in
|
|
|
|
{
|
2023-07-09 02:25:39 +04:00
|
|
|
options.modules.desktop.game.wine = {
|
2024-08-01 16:24:09 +04:00
|
|
|
enable = lib.mkEnableOption false;
|
2023-07-09 02:25:39 +04:00
|
|
|
};
|
|
|
|
|
2024-08-01 16:24:09 +04:00
|
|
|
config = lib.mkIf cfg.enable {
|
2023-07-09 02:25:39 +04:00
|
|
|
users.users.sako.packages = with pkgs; [
|
|
|
|
winetricks
|
2023-09-16 14:02:37 +04:00
|
|
|
wineWowPackages.staging
|
2023-07-09 02:25:39 +04:00
|
|
|
];
|
2023-09-16 14:02:37 +04:00
|
|
|
nixpkgs.config = {
|
|
|
|
wine = {
|
|
|
|
release = "unstable";
|
|
|
|
build = "wineWow";
|
|
|
|
};
|
|
|
|
};
|
2023-07-09 02:25:39 +04:00
|
|
|
};
|
|
|
|
}
|