dots/hosts/orion/modules/nix.nix

32 lines
814 B
Nix
Raw Normal View History

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