32 lines
561 B
Nix
32 lines
561 B
Nix
{ 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";
|
|
}
|