nix-gaming flake

This commit is contained in:
2024-06-13 22:53:44 -06:00
parent 1d818fcf92
commit dd31726028
4 changed files with 87 additions and 20 deletions

View File

@@ -1,4 +1,5 @@
{ config, lib, pkgs, ... }: {
{ config, lib, pkgs, inputs, ... }: {
imports = [ inputs.nix-gaming.nixosModules.platformOptimizations ];
options.my.apps.gaming.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.apps.gaming.enable {
programs = {
@@ -8,6 +9,7 @@
gamescopeSession.enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
platformOptimizations.enable = true;
};
};
users.users.jawz.packages =