Switch to nix flakes for Loki

This commit is contained in:
Filippo Berto 2021-12-05 10:45:33 +01:00
parent 56cc3b6485
commit dff588dc79

View file

@ -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";
}