start to split nix into modules

This commit is contained in:
Noah Masur
2022-04-25 21:54:53 -04:00
parent 55577615e2
commit 3989a16015
8 changed files with 93 additions and 53 deletions

View File

@ -0,0 +1,9 @@
{ config, ... }: {
config = {
hardware.opengl = {
enable = true;
driSupport32Bit = true;
};
};
}

View File

@ -0,0 +1,14 @@
{ config, pkgs, ... }:
{
imports = [ ./common.nix ./lutris.nix ];
config = {
# League of Legends anti-cheat
boot.kernel.sysctl = { "abi.vsyscall32" = 0; };
environment.systemPackages = with pkgs; [ openssl dconf ];
};
}

View File

@ -0,0 +1,9 @@
{ config, pkgs, ... }:
{
imports = [ ./common.nix ];
config = { environment.systemPackages = with pkgs; [ lutris amdvlk wine ]; };
}

10
modules/gaming/steam.nix Normal file
View File

@ -0,0 +1,10 @@
{ config, pkgs, ... }: {
imports = [ ./common.nix ];
config = {
hardware.steam-hardware.enable = true;
environment.systemPackages = with pkgs; [ steam ];
};
}