20 lines
429 B
Nix
20 lines
429 B
Nix
{ config, lib, options, pkgs, ... }:
|
|
{
|
|
nix = {
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes ca-derivations
|
|
'';
|
|
|
|
# Automated gabrage collection
|
|
gc = {
|
|
automatic = true;
|
|
dates = "20:30";
|
|
options = "--delete-older-than 5d";
|
|
};
|
|
|
|
# Auto-optimize nix-store, create hard-links to save space on /nix/store
|
|
settings = {
|
|
auto-optimise-store = true;
|
|
};
|
|
};
|
|
}
|