dots/hosts/orion/modules/nix.nix

24 lines
487 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 = [
"nix-command"
"flakes"
];
auto-optimise-store = true;
use-xdg-base-directories = true;
2024-05-03 14:35:00 -05:00
trusted-users = [ "@wheel" ];
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
}