nix-conf/system/nixsettings.nix
2024-03-24 23:16:17 +04:00

32 lines
678 B
Nix

{ config, pkgs, ... }:
{
documentation.nixos.enable = false;
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="];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
nixpkgs = {
config = {
allowUnfree = true;
allowUnfreePredicate = pkg: builtins.elem (builtins.parseDrvName pkg.name).name ["steam"];
permittedInsecurePackages = [
"electron-25.9.0"
];
};
};
}