feat(homeModules:gaming): add bottles and wine related pkgs

This commit is contained in:
ooks-io 2024-05-16 22:03:46 +12:00
parent b821ac5226
commit 94d786e1d0
5 changed files with 39 additions and 3 deletions

View file

@ -0,0 +1,17 @@
{ lib, config, pkgs, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.homeModules.desktop.gaming.bottles;
in
{
options.homeModules.desktop.gaming.bottles.enable = mkEnableOption "Enable bottles home-manager modules";
config = mkIf cfg.enable {
home.packages = with pkgs; [
bottles
];
};
}

View file

@ -5,6 +5,7 @@
imports = [
./factorio
./lutris
./bottles
];
options.homeModules.desktop.gaming = {

View file

@ -9,6 +9,16 @@ in
options.homeModules.desktop.gaming.lutris.enable = mkEnableOption "Enable lutris home-manager module";
config = mkIf cfg.enable {
home.packages = [ pkgs.lutris ];
home.packages = with pkgs; [
(lutris.override {
extraPkgs = p: [
p.pixman
p.libjpeg
p.gnome.zenity
p.gamescope
];
})
winetricks
];
};
}

View file

@ -1,4 +1,4 @@
{ config, lib, ... }:
{ config, lib, pkgs, ... }:
let
cfg = config.profiles.gaming;
in
@ -11,8 +11,15 @@ in
config = lib.mkIf cfg.enable {
homeModules.desktop = {
gaming = {
lutris.enable = true;
lutris.enable = false;
};
};
home.packages = with pkgs; [
bottles
winetricks
protontricks
protonup-qt
wineWowPackages.full
];
};
}

View file

@ -28,6 +28,7 @@ in
{
config = mkIf (elem "gaming" host.function) {
hardware.opengl.extraPackages = [ pkgs.gamescope ];
services.flatpak.enable = true;
programs = {
steam = {
enable = true;