Optimisations

- Remove gpg from system-wide settings (we have it in home manager too).
- Try different gc settings.
This commit is contained in:
Trevor Vallender 2023-08-28 13:45:03 +01:00
parent d5da9b28e3
commit 7d69b17cca
2 changed files with 9 additions and 7 deletions

5
bin/gc.bash Normal file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
nix-collect-garbage -d
sudo rm /nix/var/nix/gcroots/auto/*
nix-store --gc

View File

@ -42,21 +42,18 @@
nix = {
extraOptions = "experimental-features = nix-command flakes";
package = pkgs.nixFlakes;
settings = {
auto-optimise-store = true;
};
gc = {
automatic = true;
dates = "weekly";
options = "--delete-older-than 30d";
options = "--delete-older-than 7d";
};
};
hardware.bluetooth.enable = true;
programs.gnupg.agent = {
enable = true;
enableSSHSupport = true;
pinentryFlavor = "curses";
};
nixpkgs.config.allowUnfree = true;
services.openssh = {