server/system/nix.nix

17 lines
316 B
Nix
Raw Permalink Normal View History

2024-09-24 20:36:31 +01:00
{ config, pkgs, ... }:
{
# Enable flakes and nix-command
nix = {
package = pkgs.nixVersions.stable;
settings = {
experimental-features = [ "nix-command" "flakes" ];
auto-optimise-store = true;
};
gc = {
automatic = true;
options = "--delete-older-than 7d";
};
};
}