diff --git a/nixos/base.nix b/nixos/base.nix index b647990..a37d07a 100644 --- a/nixos/base.nix +++ b/nixos/base.nix @@ -227,7 +227,12 @@ }; }; }; - nix.gc.automatic = true; + nix = { + package = pkgs.nixFlakes; + extraOptions = lib.optionalString (config.nix.package == pkgs.nixFlakes) + "experimental-features = nix-command flakes"; + gc.automatic = true; + }; # This value determines the NixOS release from which the default # settings for stateful data, like file locations and database versions