50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
namespace,
|
|
...
|
|
}:
|
|
{
|
|
nix = {
|
|
settings = {
|
|
substituters = [
|
|
"nas-cache:5ibTWOXJYlKBaoNtdDEPmvdLPtfnbwf9jvdnfwi5dUs="
|
|
"https://cache.mjallen.dev/nas-cache"
|
|
"https://nixos-raspberrypi.cachix.org"
|
|
"https://nix-community.cachix.org"
|
|
"https://cache.nixos.org/"
|
|
];
|
|
trusted-public-keys = [
|
|
|
|
"nixos-raspberrypi.cachix.org-1:4iMO9LXa8BqhU+Rpg6LQKiGa2lsNh/j2oiYLNOQ5sPI="
|
|
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
|
|
];
|
|
warn-dirty = lib.mkForce false;
|
|
experimental-features = lib.mkForce [
|
|
"nix-command"
|
|
"flakes"
|
|
];
|
|
trusted-users = [ "@wheel" ];
|
|
};
|
|
|
|
# Garbage collect automatically every week
|
|
gc.automatic = lib.mkDefault true;
|
|
gc.options = lib.mkDefault "--delete-older-than 30d";
|
|
|
|
optimise.automatic = lib.mkDefault true;
|
|
};
|
|
|
|
nixpkgs = {
|
|
config = {
|
|
allowUnfree = lib.mkForce true;
|
|
cudaSupport = lib.mkDefault config.${namespace}.hardware.nvidia.enable;
|
|
allowUnsupportedSystem = true;
|
|
permittedInsecurePackages = [
|
|
# ...
|
|
"libsoup-2.74.3"
|
|
"libxml2-2.13.8"
|
|
];
|
|
};
|
|
};
|
|
}
|