From 8903024beca94685f2b7af0b18cd29f5c2bd8629 Mon Sep 17 00:00:00 2001 From: Filippo Berto Date: Fri, 3 Dec 2021 18:31:43 +0100 Subject: [PATCH] Add nix flakes to odin --- nixos/base.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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