Files
nixos/profiles/base/nix.nix
T
Greg Hellings f18d1f357c Make development experience work
Add direnv to default build
Add xonsh-direnv package to overlay and xonsh environment
Add virtualisation options
2022-05-04 13:57:19 -05:00

24 lines
482 B
Nix

{ pkgs, ... }:
{
# Enable flakes
nix = {
package = pkgs.nixFlakes;
# 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) }
# Used by direnv
keep-outputs = true
keep-derivations = true
'';
# Use hardlinking instead of copying when possible
autoOptimiseStore = true;
};
nixpkgs.config.allowUnfree = true;
}