common: move to modules, move some files out, modules: adjust dir structure
This commit is contained in:
parent
ed5f8c3ae6
commit
0bc9abc4c0
43 changed files with 86 additions and 83 deletions
28
modules/nixos/programs/gaming.nix
Executable file
28
modules/nixos/programs/gaming.nix
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
{ inputs, config, pkgs, ... }:
|
||||
|
||||
let
|
||||
nixpkgs-unstable = import inputs.nixpkgs-unstable {
|
||||
system = "${pkgs.system}";
|
||||
config.allowUnfree = true;
|
||||
};
|
||||
in {
|
||||
programs = {
|
||||
gamemode.enable = true; # performance tuning for games
|
||||
steam = {
|
||||
enable = true;
|
||||
extraCompatPackages = [ pkgs.proton-ge-bin ];
|
||||
};
|
||||
};
|
||||
environment.systemPackages = with pkgs; [
|
||||
gamescope # screen resolution controller for games that have bugs when changing resolution
|
||||
alsa-oss # to fix minecraft audio jank
|
||||
(prismlauncher.override {
|
||||
# Change Java runtimes available to Prism Launcher
|
||||
jdks = [
|
||||
jdk8
|
||||
nixpkgs-unstable.graalvmPackages.graalvm-oracle_17
|
||||
inputs.nixpkgs-pin.legacyPackages.${pkgs.system}.graalvm-ce
|
||||
];
|
||||
})
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue