enable flakes

This commit is contained in:
Andreas Zweili 2021-11-30 20:25:33 +01:00
parent 2461d3f062
commit 9d4a040466
1 changed files with 12 additions and 6 deletions

View File

@ -60,13 +60,19 @@
# allow non-free packages
nixpkgs.config.allowUnfree = true;
# enable garbage collection
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
nix = {
autoOptimiseStore = true;
package = pkgs.nixFlakes;
extraOptions = ''experimental-features = nix-command flakes'';
# enable garbage collection
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
};
nix.autoOptimiseStore = true;
environment.shellAliases = {
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";