This repository has been archived on 2024-07-10. You can view files and clone it, but cannot push or open issues or pull requests.
dotfiles-nix/nix/systems/nix.nix

32 lines
561 B
Nix
Raw Normal View History

2024-03-24 16:15:15 +01:00
{ config, lib, pkgs, ... }: {
# nix
nix = {
# garbage collection
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
# nix package with flakes
package = pkgs.nixFlakes;
# nix settings
settings = {
auto-optimise-store = true;
};
# extra options
extraOptions = ''
experimental-features = nix-command flakes
keep-outputs = true
keep-derivations = true
'';
};
# nix pkgs
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
}