mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-04-18 18:19:12 +00:00
Add modules.desktop.wine
option
I'll experiment using Wine with NixOS. Let's just see how this goes.
This commit is contained in:
parent
4c0f04266e
commit
875abade93
@ -20,6 +20,7 @@
|
|||||||
fonts.enable = true;
|
fonts.enable = true;
|
||||||
hardware.enable = true;
|
hardware.enable = true;
|
||||||
cleanup.enable = true;
|
cleanup.enable = true;
|
||||||
|
wine.enable = true;
|
||||||
};
|
};
|
||||||
dev = {
|
dev = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
@ -14,6 +14,14 @@ in {
|
|||||||
hardware.enable =
|
hardware.enable =
|
||||||
lib.mkEnableOption "the common hardware-related configuration";
|
lib.mkEnableOption "the common hardware-related configuration";
|
||||||
cleanup.enable = lib.mkEnableOption "activation of cleanup services";
|
cleanup.enable = lib.mkEnableOption "activation of cleanup services";
|
||||||
|
wine = {
|
||||||
|
enable = lib.mkEnableOption "Wine and Wine-related tools";
|
||||||
|
package = lib.mkOption {
|
||||||
|
type = lib.types.package;
|
||||||
|
description = "The Wine package to be used for related tools.";
|
||||||
|
default = pkgs.wineWowPackages.stable;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
@ -130,5 +138,15 @@ in {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|
||||||
|
# I try to avoid using Wine on NixOS because most of them uses FHS or something and I just want it to work but here goes.
|
||||||
|
(lib.mkIf cfg.wine.enable {
|
||||||
|
environment.systemPackages = with pkgs;
|
||||||
|
[
|
||||||
|
cfg.wine.package # The star of the show.
|
||||||
|
winetricks # We do a little trickery with missing Windows runtimes.
|
||||||
|
bottles # PlayOnLinux but better. :)
|
||||||
|
];
|
||||||
|
})
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user