dots/hosts/orion/modules/nix.nix
Price Hiller 06f2309e9f
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 38s
feat(hosts/orion): use cachix substituters
2024-10-28 16:13:34 -05:00

30 lines
716 B
Nix

{ inputs, pkgs, ... }:
{
nixpkgs.config.allowUnfree = true;
nix = {
package = pkgs.nixVersions.latest;
nixPath = [ "nixpkgs=${inputs.nixpkgs}" ];
settings = {
experimental-features = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
use-xdg-base-directories = true;
trusted-users = [ "@wheel" ];
substituters = [
"https://nix-community.cachix.org"
"https://cache.nixos.org"
];
trusted-public-keys = [
"nix-community.cachix.org-1:mB9FSh9qf2dCimDSUo8Zy7bkq5CX+/rkCWyvRCYg3Fs="
];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
}