Switch to nix flakes for Loki
This commit is contained in:
parent
56cc3b6485
commit
dff588dc79
1 changed files with 6 additions and 1 deletions
|
|
@ -234,6 +234,11 @@
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nixpkgs.config.allowUnfree = true;
|
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";
|
system.stateVersion = "21.05";
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue