Nix Flakes configuration for MacOS, NixOS and WSL
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at main 35 lines 1.2 kB view raw
1{ inputs, ... }: 2{ 3 allowedUnfreePackages = [ "steam" "steam-unwrapped" ]; 4 5 flake.nixosModules.gaming = { pkgs, ... }: { 6 # User CachyOS kernel patches specically mades for gaming 7 nix.settings.substituters = [ "https://attic.xuyh0120.win/lantian" ]; 8 nix.settings.trusted-public-keys = [ "lantian:EeAUQ+W+6r7EtwnmYjeVwx5kOGEBpjlBfPlzGlTNvHc=" ]; 9 nixpkgs.overlays = [ inputs.nix-cachyos-kernel.overlays.pinned ]; 10 boot.kernelPackages = pkgs.cachyosKernels.linuxPackages-cachyos-latest; 11 12 # Use ananicy 13 services.ananicy.enable = true; 14 services.ananicy.package = pkgs.ananicy-cpp; 15 services.ananicy.rulesProvider = pkgs.ananicy-rules-cachyos; 16 17 # Steam configuration 18 hardware.graphics.enable32Bit = true; 19 programs.steam = { 20 enable = true; 21 gamescopeSession.enable = true; 22 }; 23 24 # Additionnal packages 25 environment.systemPackages = with pkgs; [ 26 faugus-launcher # Alternative launcher for multiple games platform 27 heroic 28 mangohud 29 prismlauncher # Minecraft launcher 30 jdk25_headless # Needed for minecraft 26.1 since it's not included inside prismlauncher for the moment 31 32 unstable.gale # Modding platform 33 ]; 34 }; 35}