dotfiles/etc/gaming.nix
2024-05-18 01:10:04 +02:00

44 lines
1 KiB
Nix
Executable file

{ pkgs, config, ... }:
{
environment.systemPackages = with pkgs;[
# minecraft
prismlauncher
# not so epic games
heroic
# lol
(lutris.override {
extraPkgs = pkgs: [
pkgs.winePackages.base
];
})
];
# enabling java for mc
programs.java = { enable = true; package = pkgs.jdk17; };
# steam
programs.steam.enable = true;
programs.firejail = {
wrappedBinaries = {
# To add another drive:
# 1. open steam steam://open/console in browser
# 2. library_folder_add "/path/to/drive"
steam = {
executable = "${pkgs.steam}/bin/steam";
profile = "${pkgs.firejail}/etc/firejail/steam.profile";
desktop = "${pkgs.steam}/share/applications/steam.desktop";
extraArgs = [
"--env=GTK_THEME=Adwaita:dark"
];
};
#heroic = {
# executable = "${pkgs.heroic}/bin/heroic";
# profile = "${pkgs.firejail}/etc/firejail/steam.profile";
# desktop = "${pkgs.heroic}/share/applications/steam.desktop";
#};
};
};
}