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

View File

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