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 ./kde.nix
./vinzenz.nix ./vinzenz.nix
./ronja.nix ./ronja.nix
./gaming.nix
]; ];
options.my.desktop = { options.my.desktop = {
@ -21,6 +22,7 @@ in {
kde.enable = lib.mkEnableOption "KDE desktop"; kde.enable = lib.mkEnableOption "KDE desktop";
ronja.enable = lib.mkEnableOption "user ronja"; ronja.enable = lib.mkEnableOption "user ronja";
vinzenz.enable = lib.mkEnableOption "user vinzenz"; vinzenz.enable = lib.mkEnableOption "user vinzenz";
gaming.enable = lib.mkEnableOption "gaming with wine";
}; };
config = lib.mkIf cfg.enable { 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; [ packages = with pkgs; [
## Apps ## Apps
steam
telegram-desktop telegram-desktop
lutris
kdiff3 kdiff3
wineWowPackages.stagingFull
wineWowPackages.fonts
winetricks
(lutris.override {
extraPkgs = pkgs: [
# List package dependencies here
];
extraLibraries = pkgs: [
# List library dependencies here
];
})
]; ];
file.".nanorc".text = '' file.".nanorc".text = ''

View file

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

View file

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