36 lines
840 B
Nix
36 lines
840 B
Nix
{ config, pkgs, lib, ... }:
|
|
|
|
{
|
|
nix = {
|
|
settings = {
|
|
warn-dirty = false;
|
|
experimental-features = [ "nix-command" "flakes" ];
|
|
auto-optimise-store = true;
|
|
substituters = [ "https://nix-gaming.cachix.org" ];
|
|
trusted-public-keys = [
|
|
"nix-gaming.cachix.org-1:nbjlureqMbRAxR1gJ/f3hxemL9svXaZF/Ees8vCUUs4="
|
|
];
|
|
};
|
|
};
|
|
|
|
programs = {
|
|
steam = {
|
|
enable = true;
|
|
extest.enable = true;
|
|
remotePlay.openFirewall = true;
|
|
dedicatedServer.openFirewall = true;
|
|
localNetworkGameTransfers.openFirewall = true;
|
|
};
|
|
};
|
|
|
|
hardware.steam-hardware.enable = true;
|
|
|
|
nixpkgs.config.allowUnfree = true;
|
|
nixpkgs.config.allowUnfreePredicate = pkg:
|
|
builtins.elem (lib.getName pkg) [
|
|
"steam"
|
|
"steam-original"
|
|
"steam-unwrapped"
|
|
"steam-run"
|
|
];
|
|
}
|