Add lutris and qbittorrent

This commit is contained in:
2023-01-08 02:35:25 +00:00
parent 8752fb747f
commit 5c91773f05
4 changed files with 31 additions and 4 deletions

View File

@ -25,9 +25,11 @@ with lib.my;
modules = { modules = {
desktop = { desktop = {
apps.qbittorrent.enable = true;
browsers = { browsers = {
firefox.enable = true; firefox.enable = true;
}; };
gaming.lutris.enable = true;
}; };
dev = { dev = {
node.enable = true; node.enable = true;

View File

@ -2,9 +2,10 @@
imports = [ imports = [
./options.nix ./options.nix
./desktop/gnome.nix ./desktop/gnome.nix
./desktop/apps/qbittorrent.nix
./desktop/browsers/firefox.nix ./desktop/browsers/firefox.nix
./desktop/gaming/bottles.nix
./desktop/gaming/emulators.nix ./desktop/gaming/emulators.nix
./desktop/gaming/lutris.nix
./desktop/gaming/steam.nix ./desktop/gaming/steam.nix
./dev/cc.nix ./dev/cc.nix
./dev/java.nix ./dev/java.nix

View File

@ -2,15 +2,15 @@
with lib; with lib;
with lib.my; with lib.my;
let cfg = config.modules.desktop.gaming.bottles; let cfg = config.modules.desktop.apps.qbittorrent;
in { in {
options.modules.desktop.gaming.bottles = { options.modules.desktop.apps.qbittorrent = {
enable = mkBoolOpt false; enable = mkBoolOpt false;
}; };
config = mkIf cfg.enable { config = mkIf cfg.enable {
user.packages = with pkgs; [ user.packages = with pkgs; [
bottles qbittorrent
]; ];
}; };
} }

View File

@ -0,0 +1,24 @@
{ config, lib, pkgs, ... }:
with lib;
with lib.my;
let cfg = config.modules.desktop.gaming.lutris;
in {
options.modules.desktop.gaming.lutris = {
enable = mkBoolOpt false;
};
config = mkIf cfg.enable {
user.packages = with pkgs; [
lutris
vulkan-loader
vulkan-tools
];
hardware.opengl = {
enable = true;
driSupport = true;
driSupport32Bit = true;
};
};
}