24 lines
409 B
Nix
24 lines
409 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
username,
|
||
|
...
|
||
|
}: {
|
||
|
# do garbage collection weekly to keep disk usage low
|
||
|
nix = {
|
||
|
settings = {
|
||
|
experimental-features = ["nix-command" "flakes"];
|
||
|
};
|
||
|
|
||
|
gc = {
|
||
|
automatic = lib.mkDefault true;
|
||
|
dates = lib.mkDefault "weekly";
|
||
|
options = lib.mkDefault "--delete-older-than 7d";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
# Allow unfree packages
|
||
|
nixpkgs.config.allowUnfree = true;
|
||
|
|
||
|
}
|