sucks that i have to think of a commit message just to send the files from my laptop to my computer

This commit is contained in:
martyTF 2026-04-02 18:02:50 +02:00
parent 90513a119c
commit cd3ce9f816
3 changed files with 37 additions and 65 deletions

View file

@ -6,8 +6,41 @@
}: }:
{ {
imports = [ options = {
./steam.nix apps.gaming = {
./minecraft.nix enable = true;
steam.enable = lib.mkEnableOption "enable steam";
minecraft.enable = lib.mkEnableOption "enable minecraft";
};
};
config = {
environment.systemPackages = with pkgs; [
(lib.mkIf (config.apps.gaming.enable) cartridges)
(lib.mkIf (config.apps.gaming.enable) lutris)
(lib.mkIf (config.apps.gaming.minecraft.enable) prismlauncher)
(lib.mkIf (config.apps.gaming.steam.enable) adwsteamgtk)
]; ];
programs = {
steam = lib.mkIf config.apps.gaming.steam.enable {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
extraPackages = with pkgs; [
gamescope
];
};
gamescope = {
enable = true;
capSysNice = true;
};
};
};
} }

View file

@ -1,20 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
options = {
apps.gaming = {
minecraft.enable = lib.mkEnableOption "enable minecraft";
};
};
config = lib.mkIf config.apps.gaming.minecraft.enable {
environment.systemPackages = with pkgs; [
prismlauncher
];
};
}

View file

@ -1,41 +0,0 @@
{
config,
lib,
pkgs,
...
}:
{
options = {
apps.gaming = {
steam.enable = lib.mkEnableOption "enable steam";
};
};
config = lib.mkIf config.apps.gaming.steam.enable {
environment.systemPackages = with pkgs; [
adwsteamgtk
];
programs = {
steam = {
enable = true;
remotePlay.openFirewall = true;
dedicatedServer.openFirewall = true;
localNetworkGameTransfers.openFirewall = true;
gamescopeSession.enable = true;
protontricks.enable = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
];
extraPackages = with pkgs; [
gamescope
];
};
gamescope = {
enable = true;
capSysNice = true;
};
};
};
}