enable flakes
This commit is contained in:
parent
2461d3f062
commit
9d4a040466
|
@ -60,13 +60,19 @@
|
||||||
# allow non-free packages
|
# allow non-free packages
|
||||||
nixpkgs.config.allowUnfree = true;
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
|
||||||
# enable garbage collection
|
nix = {
|
||||||
nix.gc = {
|
autoOptimiseStore = true;
|
||||||
automatic = true;
|
package = pkgs.nixFlakes;
|
||||||
dates = "weekly";
|
extraOptions = ''experimental-features = nix-command flakes'';
|
||||||
options = "--delete-older-than 7d";
|
|
||||||
|
# enable garbage collection
|
||||||
|
gc = {
|
||||||
|
automatic = true;
|
||||||
|
dates = "weekly";
|
||||||
|
options = "--delete-older-than 7d";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
nix.autoOptimiseStore = true;
|
|
||||||
|
|
||||||
environment.shellAliases = {
|
environment.shellAliases = {
|
||||||
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
|
nix-generations = "sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
|
||||||
|
|
Loading…
Reference in New Issue