Add Battle.net module enabling Lutris, wine, and winetricks
This commit is contained in:
parent
0a34d3f062
commit
79ba19161f
|
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
let
|
||||
cfg = config.modules.battlenet;
|
||||
in
|
||||
{
|
||||
config = mkIf cfg.enable {
|
||||
# Battle.net games rely on 32-bit graphics libraries; Steam would
|
||||
# normally force this on, but enable it independently as a fallback.
|
||||
hardware.graphics.enable32Bit = mkDefault true;
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
lutris
|
||||
wineWow64Packages.staging
|
||||
winetricks
|
||||
];
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
}:
|
||||
{
|
||||
imports = [
|
||||
./battlenet.nix
|
||||
./boot.nix
|
||||
./dev.nix
|
||||
./fonts.nix
|
||||
|
|
|
|||
|
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib;
|
||||
{
|
||||
options.modules.battlenet = {
|
||||
enable = mkEnableOption "Battle.net via Lutris/Wine";
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
}:
|
||||
{
|
||||
imports = [
|
||||
./battlenet.nix
|
||||
./discord.nix
|
||||
./dictation.nix
|
||||
./dev.nix
|
||||
|
|
|
|||
|
|
@ -7,4 +7,6 @@
|
|||
];
|
||||
|
||||
modules.steam.enable = true;
|
||||
|
||||
modules.battlenet.enable = true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue