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

30 lines
545 B
Nix

{ config, lib, pkgs, ... }: {
# nix
nix = {
# garbage collection
gc.automatic = true;
gc.dates = "weekly";
gc.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";
}