feat: nix store optimizations

This commit is contained in:
Laureηt 2022-12-27 14:11:24 +01:00
parent 0ae9cb327b
commit dc4b106f42
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -35,10 +35,9 @@ in {
networking.wg-quick.interfaces = {
wg0 = {
privateKeyFile = "/root/wireguard-keys/private";
address = [ "10.0.0.3/32" ];
dns = [ "10.0.0.1" ];
privateKeyFile = "/root/wireguard-keys/private";
peers = [{
publicKey = "y36/EpLUerwM6NSGsVDCkb37Wj/Z3CI0mPFGatVa0Ws=";
allowedIPs = [ "10.0.0.1/24" ];
@ -303,11 +302,12 @@ in {
brettm12345.nixfmt-vscode
arrterian.nix-env-selector
ms-vsliveshare.vsliveshare
eamodio.gitlens
github.copilot
editorconfig.editorconfig
yzhang.markdown-all-in-one
editorconfig.editorconfig
catppuccin.catppuccin-vsc
file-icons.file-icons
@ -611,6 +611,14 @@ in {
# experimental features
nix.settings.experimental-features = [ "nix-command" "flakes" ];
# optimizations
nix.settings.auto-optimise-store = true;
nix.gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
};
# This value determines the NixOS release from which the default
# settings for stateful data, like file locations and database versions
# on your system were taken. Its perfectly fine and recommended to leave