From dff588dc7908ef7ec9b6f1e37a6aab89c95b8939 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Sun, 5 Dec 2021 10:45:33 +0100 Subject: [PATCH] Switch to nix flakes for Loki --- nixos/loki.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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"; }