From c98a00cc3ffc0ac68a22762135e8781e0440622b Mon Sep 17 00:00:00 2001 From: coolneng Date: Fri, 30 Sep 2022 21:30:28 +0200 Subject: [PATCH] Remove deprecated nixFlakes package --- configuration.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/configuration.nix b/configuration.nix index d9098e3..21d8451 100644 --- a/configuration.nix +++ b/configuration.nix @@ -62,7 +62,10 @@ with pkgs; # Run Nix garbage collector, while avoiding recompilation and enable flakes nix = { - settings.auto-optimise-store = true; + settings = { + auto-optimise-store = true; + experimental-features = [ "nix-command" "flakes" ]; + }; gc = { automatic = true; options = "--delete-older-than 14d"; @@ -72,9 +75,7 @@ with pkgs; keep-outputs = true keep-derivations = true gc-keep-outputs = true - experimental-features = nix-command flakes ''; - package = nixFlakes; }; # Use same version of nixpkgs for nix-shell