Compare commits

..

3 commits

Author SHA1 Message Date
d414ff36ce
refactor 2025-09-26 18:07:05 +08:00
dc87a6ebe0
persiste /var/lib/private 2025-09-26 18:06:42 +08:00
1b857236ee
reduce time to keep garbage 2025-09-26 18:06:08 +08:00
4 changed files with 7 additions and 6 deletions

View file

@ -9,7 +9,7 @@
# Automatically run the garbage collector an a specified time.
automatic = true;
dates = "weekly";
options = "--delete-older-than 28d";
options = "--delete-older-than 14d";
};
# This will add each flake input as a registry

View file

@ -26,7 +26,7 @@ in {
btrfs subvolume delete "$1"
}
for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +30); do
for i in $(find /btrfs_tmp/old_roots/ -maxdepth 1 -mtime +14); do
delete_subvolume_recursively "$i"
done

View file

@ -12,6 +12,7 @@
"/var/lib/docker"
"/var/lib/flatpak"
"/var/lib/nixos"
"/var/lib/private"
"/var/lib/systemd/coredump"
"/etc/NetworkManager/system-connections"
];

View file

@ -13,14 +13,14 @@
boot = {
# Initial ramdisk
initrd = {
# The modules listed here are available in the initrd, but are only loaded on demand.
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
# List of modules that are always loaded by the initrd.
kernelModules = ["kvm-amd" "amdgpu"];
# The modules listed here are available in the initrd, but are only loaded on demand.
availableKernelModules = ["nvme" "xhci_pci" "ahci" "usb_storage" "usbhid" "sd_mod"];
};
# Linux kernel used by NixOS.
kernelPackages = pkgs.linuxPackages_latest;
kernelPackages = pkgs.linuxPackages;
# Parameters added to the kernel command line.
kernelParams = [
# Enable amdgpu driver sysfs API that allows fine grain control of GPU
@ -37,7 +37,7 @@
};
systemd-boot = {
enable = true;
configurationLimit = 20;
configurationLimit = 14;
};
};
};