mirror of
https://github.com/kaesaecracker/nixos-configuration.git
synced 2025-01-18 10:30:14 +01:00
new gaming module
This commit is contained in:
parent
3f5720d73c
commit
1df7490752
|
@ -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 {
|
||||
|
|
29
modules/desktop/gaming.nix
Normal file
29
modules/desktop/gaming.nix
Normal 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
|
||||
];
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
|
@ -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 = ''
|
||||
|
|
|
@ -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 = ''
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue