diff --git a/nixos/loki.nix b/nixos/loki.nix index 37f5379..cb80a19 100644 --- a/nixos/loki.nix +++ b/nixos/loki.nix @@ -234,6 +234,11 @@ ''; nixpkgs.config.allowUnfree = true; - nix.gc.automatic = true; + nix = { + package = pkgs.nixFlakes; + extraOptions = lib.optionalString (config.nix.package == pkgs.nixFlakes) + "experimental-features = nix-command flakes"; + gc.automatic = true; + }; system.stateVersion = "21.05"; }