diff --git a/flake.nix b/flake.nix index 63ef18c..86f4866 100644 --- a/flake.nix +++ b/flake.nix @@ -37,7 +37,7 @@ "https://cache.cything.io/central" ]; extra-trusted-public-keys = [ - "central:cuiJMi+5BFUGeBPNMNWiKO6dlVTOHbHizFY+t7UW12w=" + "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ]; builders-use-substitutes = true; }; diff --git a/hosts/chunk/attic.nix b/hosts/chunk/attic.nix index e731c01..7c728be 100644 --- a/hosts/chunk/attic.nix +++ b/hosts/chunk/attic.nix @@ -19,14 +19,14 @@ }; garbage-collection = { - default-retention-period = "3 months"; + default-retention-period = "1 minute"; }; chunking = { nar-size-threshold = 0; # disables chunking - min-size = 64 * 1024 * 1024; - avg-size = 128 * 1024 * 1024; - max-size = 256 * 1024 * 1024; + min-size = 0; + avg-size = 0; + max-size = 0; }; }; }; diff --git a/hosts/chunk/rclone.nix b/hosts/chunk/rclone.nix index bd3098b..1083545 100644 --- a/hosts/chunk/rclone.nix +++ b/hosts/chunk/rclone.nix @@ -34,7 +34,7 @@ ExecStartPre = "/usr/bin/env mkdir -p /mnt/attic"; ExecStart = "${lib.getExe pkgs.rclone} mount --config ${ config.sops.secrets."rclone/config".path - } --cache-dir /var/cache/rclone --transfers=32 --allow-other --cache-dir /var/cache/rclone --dir-cache-time 72h --vfs-cache-mode writes --vfs-cache-max-size 2G rsyncnet:attic /mnt/attic "; + } --cache-dir /var/cache/rclone --transfers=32 --allow-other rsyncnet:attic /mnt/attic "; ExecStop = "${lib.getExe' pkgs.fuse "fusermount"} -u /mnt/attic"; }; }; diff --git a/hosts/common.nix b/hosts/common.nix index 64722ad..373f0d5 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -6,7 +6,7 @@ auto-optimise-store = true; flake-registry = ""; trusted-users = [ "root" "@wheel" ]; - trusted-public-keys = [ "central:cuiJMi+5BFUGeBPNMNWiKO6dlVTOHbHizFY+t7UW12w=" ]; + trusted-public-keys = [ "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ]; substituters = [ "https://cache.cything.io/central" ]; }; channel.enable = false;