Added nvidia drivers and gaming profile

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

No files matched your search

+1
View File
@@ -4,5 +4,6 @@
imports = [
./common.nix
./desktop.nix
./gaming.nix
];
}
+19
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
};
};
}