Files
nixos/modules/automatic/nix.nix
T

23 lines
429 B
Nix
Raw Normal View History

2022-04-21 04:49:44 +00:00
{ pkgs, ... }:
{
# Enable flakes
nix = {
package = pkgs.nixFlakes;
2022-09-07 11:28:09 -05:00
autoOptimiseStore = true;
2022-04-21 04:49:44 +00:00
# Keep freespace available, at a minimum, and enable Flakes
extraOptions = ''
experimental-features = nix-command flakes
min-free = ${toString (1024 * 1024 * 1024) }
max-free = ${toString (5 * 1024 * 1024 * 1024) }
2022-05-04 13:52:38 -05:00
# Used by direnv
keep-outputs = true
keep-derivations = true
2022-04-21 04:49:44 +00:00
'';
};
nixpkgs.config.allowUnfree = true;
}