import nvidia in gaming mod

This commit is contained in:
Ivan Dimitrov 2023-12-09 09:03:28 +02:00
parent 25f1f395ce
commit 29066729ef
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,6 @@
{ nixpkgs, ... }: { nixpkgs, ... }:
{ {
imports = [ ../nvidia ];
# Uses unfree shit # Uses unfree shit
nixpkgs.config.allowUnfreePredicate = pkg: nixpkgs.config.allowUnfreePredicate = pkg:
builtins.elem (nixpkgs.lib.getName pkg) [ builtins.elem (nixpkgs.lib.getName pkg) [
@ -7,6 +8,9 @@
"steamcmd" "steamcmd"
"steam-original" "steam-original"
"steam-run" "steam-run"
"nvidia-settings"
"nvidia-x11"
"nvidia-persistenced"
]; ];
programs.steam = { programs.steam = {
enable = true; enable = true;

View File

@ -1,7 +1,7 @@
{ system, nixpkgs, modules, hosts }: { { system, nixpkgs, modules, hosts }: {
laptop = nixpkgs.lib.nixosSystem { laptop = nixpkgs.lib.nixosSystem {
inherit system; inherit system;
modules = with modules.nixos;[ modules = with modules.nixos; [
../hardware-configuration.nix ../hardware-configuration.nix
./laptop ./laptop
dnscrypt dnscrypt