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 = {
|
2023-12-02 09:47:09 +00:00
|
|
|
allowAliases = true;
|
2023-11-17 11:34:15 +00:00
|
|
|
};
|
|
|
|
}
|