Add nix flakes to odin

This commit is contained in:
Filippo Berto 2021-12-03 18:31:43 +01:00
parent 6e3edf1484
commit 8903024bec

View file

@ -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 # This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions # settings for stateful data, like file locations and database versions