This commit is contained in:
@@ -21,8 +21,8 @@ let
|
||||
);
|
||||
in
|
||||
{
|
||||
imports = [ inputs.nix-gaming.nixosModules.platformOptimizations ];
|
||||
options.my.apps = {
|
||||
switch.enable = lib.mkEnableOption "Nintendo Switch homebrew tools";
|
||||
gaming = {
|
||||
enable = lib.mkEnableOption "gaming applications and emulators";
|
||||
users = lib.mkOption {
|
||||
@@ -31,8 +31,8 @@ in
|
||||
description = "Users to install gaming packages for";
|
||||
};
|
||||
};
|
||||
switch.enable = lib.mkEnableOption "Nintendo Switch homebrew tools";
|
||||
};
|
||||
imports = [ inputs.nix-gaming.nixosModules.platformOptimizations ];
|
||||
config = lib.mkIf config.my.apps.gaming.enable {
|
||||
# sops.secrets.switch-presence = lib.mkIf config.my.apps.gaming.switch.enable {
|
||||
# sopsFile = ../../secrets/env.yaml;
|
||||
@@ -40,16 +40,6 @@ in
|
||||
# owner = config.users.users.jawz.name;
|
||||
# inherit (config.users.users.jawz) group;
|
||||
# };
|
||||
programs = {
|
||||
gamemode.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
platformOptimizations.enable = true;
|
||||
};
|
||||
};
|
||||
services = lib.mkIf config.my.apps.switch.enable {
|
||||
switch-boot.enable = true;
|
||||
# switch-presence = {
|
||||
@@ -80,5 +70,15 @@ in
|
||||
};
|
||||
in
|
||||
inputs.self.lib.mkUserPackages lib config.my.apps.gaming.users packages;
|
||||
programs = {
|
||||
gamemode.enable = true;
|
||||
steam = {
|
||||
enable = true;
|
||||
gamescopeSession.enable = true;
|
||||
remotePlay.openFirewall = true;
|
||||
dedicatedServer.openFirewall = true;
|
||||
platformOptimizations.enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user