updating nix gc config

This commit is contained in:
Julian Sutter 2023-01-29 12:25:42 -08:00
parent 1bf9ee3cda
commit 45f05e5bdd
2 changed files with 47 additions and 3 deletions

View file

@ -13,7 +13,19 @@
# hardware
hardware.enableRedistributableFirmware = true;
networking.networkmanager.enable = true;
# Network
networking = {
extraHosts = "";
networkmanager = {
enable = true;
plugins = with pkgs; [
networkmanager-openvpn
networkmanager-openconnect
];
};
useDHCP = false; # Depreciated
};
# Bootloader
boot.loader.systemd-boot.enable = true;
@ -23,8 +35,24 @@
boot.kernelPackages = pkgs.linuxPackages_latest;
# Nix
nix = {
# Automate garbage collection
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 7d";
};
package = pkgs.nixVersions.stable;
modules.registry.nixpkgs.flake = inputs.nixpkgs;
settings = {
auto-optimise-store = true;
trusted-users = [ "root" "jsutter" ];
experimental-features = [ "nix-command" "flakes" ];
keep-outputs = true;
keep-derivations = true;
};
};
system.stateVersion = "23.05";
nix.settings.experimental-features = [ "nix-command" "flakes" ];
nixpkgs.config.allowUnfree = true;
# Location & internationalisation
@ -89,4 +117,20 @@
pinentryFlavor = "gnome3";
enableSSHSupport = true;
};
# Docker & VirtualBox.
virtualisation = {
docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
virtualbox.host = {
enable = false;
enableExtensionPack = false;
};
};
users.extraGroups.vboxusers.members = [ "jsutter" ];
}