NixOS/nix-settings.nix

27 lines
530 B
Nix
Raw Normal View History

2023-11-17 11:34:15 +00:00
# ======================================================
# _ _ _
# | \ | (_)_ __
# | \| | \ \/ /
# | |\ | |> <
# |_| \_|_/_/\_\
#
# Configuration for nix
{ config, pkgs, lib, ... }:
{
# cleanup nix store after every build
nix.settings.auto-optimise-store = true;
# confgure garbage collector of nixos
# to run weekly
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
nixpkgs.config = {
allowAliases = true;
2023-11-17 11:34:15 +00:00
};
}