new gaming module

This commit is contained in:
Vinzenz Schroeter 2023-09-23 11:29:46 +02:00
parent 3f5720d73c
commit 1df7490752
5 changed files with 40 additions and 36 deletions

View file

@ -13,6 +13,7 @@ in {
./kde.nix
./vinzenz.nix
./ronja.nix
./gaming.nix
];
options.my.desktop = {
@ -21,6 +22,7 @@ in {
kde.enable = lib.mkEnableOption "KDE desktop";
ronja.enable = lib.mkEnableOption "user ronja";
vinzenz.enable = lib.mkEnableOption "user vinzenz";
gaming.enable = lib.mkEnableOption "gaming with wine";
};
config = lib.mkIf cfg.enable {

View file

@ -0,0 +1,29 @@
{
config,
pkgs,
lib,
...
}: let
cfg = config.my.desktop.gaming;
in {
imports = [];
config = lib.mkIf cfg.enable {
hardware.opengl.driSupport32Bit = true;
environment.systemPackages = with pkgs; [
wineWowPackages.stagingFull
wineWowPackages.fonts
winetricks
steam
(lutris.override {
extraPkgs = pkgs: [
# List package dependencies here
];
extraLibraries = pkgs: [
# List library dependencies here
];
})
];
};
}

View file

@ -33,22 +33,8 @@ in {
packages = with pkgs; [
## Apps
steam
telegram-desktop
lutris
kdiff3
wineWowPackages.stagingFull
wineWowPackages.fonts
winetricks
(lutris.override {
extraPkgs = pkgs: [
# List package dependencies here
];
extraLibraries = pkgs: [
# List library dependencies here
];
})
];
file.".nanorc".text = ''

View file

@ -32,7 +32,6 @@ in {
packages = with pkgs; [
keepassxc
steam
insync
telegram-desktop
simple-scan
@ -40,7 +39,6 @@ in {
element-desktop
etcher
iotop
radeontop
lsof
wirelesstools
thefuck
@ -53,19 +51,7 @@ in {
jetbrains.pycharm-professional
kdiff3
docker
wineWowPackages.stagingFull
wineWowPackages.fonts
winetricks
youtube-music
(lutris.override {
extraPkgs = pkgs: [
# List package dependencies here
];
extraLibraries = pkgs: [
# List library dependencies here
];
})
];
file.".nanorc".text = ''

View file

@ -1,19 +1,20 @@
{...}: {
{pkgs, ...}: {
imports = [
./modules/desktop
(import ./modules/hardware "vinzenz-pc2")
];
config = {
my = {
desktop = {
enable = true;
kde.enable = true;
vinzenz.enable = true;
ronja.enable = true;
};
my.desktop = {
enable = true;
kde.enable = true;
vinzenz.enable = true;
ronja.enable = true;
gaming.enable = true;
};
environment.systemPackages = [pkgs.radeontop];
users.groups."games" = {
members = ["vinzenz" "ronja"];
};