Added nvidia drivers and gaming profile

This commit is contained in:
marc
2022-11-04 19:32:53 +01:00
parent f4d6589bd1
commit 0f4b895d38
9 changed files with 89 additions and 3 deletions

View File

@@ -4,5 +4,6 @@
imports = [
./common.nix
./desktop.nix
./gaming.nix
];
}

View File

@@ -0,0 +1,19 @@
{ config, pkgs, lib, ... }:
let
cfg = config.samfelag.profiles.gaming;
in
{
options.samfelag.profiles.gaming = {
enable = lib.mkEnableOption "gaming profile";
};
config = lib.mkIf cfg.enable {
programs.steam = {
enable = true;
remotePlay.openFirewall = true; # Open ports in the firewall for Steam Remote Play
dedicatedServer.openFirewall = true; # Open ports in the firewall for Source Dedicated Server
};
};
}