diff --git a/nixos/common/global/nix.nix b/nixos/common/global/nix.nix index 11fcca0..af81859 100644 --- a/nixos/common/global/nix.nix +++ b/nixos/common/global/nix.nix @@ -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 diff --git a/nixos/common/optional/ephemeral-btrfs.nix b/nixos/common/optional/ephemeral-btrfs.nix index e6e84cb..b7749d8 100644 --- a/nixos/common/optional/ephemeral-btrfs.nix +++ b/nixos/common/optional/ephemeral-btrfs.nix @@ -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 diff --git a/nixos/common/optional/persist.nix b/nixos/common/optional/persist.nix index bd218b5..ebb1b50 100644 --- a/nixos/common/optional/persist.nix +++ b/nixos/common/optional/persist.nix @@ -12,6 +12,7 @@ "/var/lib/docker" "/var/lib/flatpak" "/var/lib/nixos" + "/var/lib/private" "/var/lib/systemd/coredump" "/etc/NetworkManager/system-connections" ]; diff --git a/nixos/fuchsia/hardware-configuration.nix b/nixos/fuchsia/hardware-configuration.nix index 49773dd..1d11aae 100644 --- a/nixos/fuchsia/hardware-configuration.nix +++ b/nixos/fuchsia/hardware-configuration.nix @@ -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; }; }; };