From 0299139b8e917662b1a14f3a5eafcfe4437bdea8 Mon Sep 17 00:00:00 2001 From: cy Date: Sun, 27 Apr 2025 17:51:34 -0400 Subject: [PATCH] workflow: increase download buffer --- .../workflows/build-machines-and-homes.yml | 2 ++ home/yt/ytnix.nix | 34 ++++++++++++++++++- hosts/chunk/garage.nix | 2 +- hosts/chunk/rclone.nix | 9 +++-- hosts/ytnix/default.nix | 4 +-- 5 files changed, 41 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build-machines-and-homes.yml b/.github/workflows/build-machines-and-homes.yml index f1e07bc..b85e53f 100644 --- a/.github/workflows/build-machines-and-homes.yml +++ b/.github/workflows/build-machines-and-homes.yml @@ -71,6 +71,7 @@ jobs: extra-substituters = https://nixcache.cy7.sh extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8= post-build-hook = /etc/nix/upload-to-cache.sh + download-buffer-size = 1073741824 - name: build run: | @@ -136,6 +137,7 @@ jobs: extra-substituters = https://nixcache.cy7.sh extra-trusted-public-keys = nixcache.cy7.sh:DN3d1dt0wnXfTH03oVmTee4KgmdNdB0NY3SuzA8Fwx8= post-build-hook = /etc/nix/upload-to-cache.sh + download-buffer-size = 1073741824 - name: build run: | diff --git a/home/yt/ytnix.nix b/home/yt/ytnix.nix index 9aed45a..cfddbb7 100644 --- a/home/yt/ytnix.nix +++ b/home/yt/ytnix.nix @@ -60,7 +60,6 @@ gnumake unzip anki-bin - trezorctl q gdb fuzzel @@ -158,6 +157,11 @@ lua-language-server nil rust-analyzer + fzf + fd + ripgrep + bat + delta ]; }; @@ -167,4 +171,32 @@ }; programs.firefox.enable = true; + + programs.emacs = { + enable = true; + extraPackages = _: with pkgs; [ + rust-analyzer + nil + ispell + ]; + }; + + gtk = { + enable = true; + theme.package = pkgs.gnome-themes-extra; + theme.name = "Adwaita-dark"; + }; + + qt = { + enable = true; + platformTheme.name = "adwaita"; + style.name = "adwaita-dark"; + style.package = pkgs.adwaita-qt; + }; + + dconf.settings = { + "org/gnome/desktop/interface" = { + color-scheme = "prefer-dark"; + }; + }; } diff --git a/hosts/chunk/garage.nix b/hosts/chunk/garage.nix index a36dc49..aef6578 100644 --- a/hosts/chunk/garage.nix +++ b/hosts/chunk/garage.nix @@ -25,7 +25,7 @@ compression_level = "none"; }; environmentFile = config.sops.secrets."garage/env".path; - logLevel = "warn"; + logLevel = "info"; }; services.caddy.virtualHosts = { diff --git a/hosts/chunk/rclone.nix b/hosts/chunk/rclone.nix index 1c253f2..7ab5e2e 100644 --- a/hosts/chunk/rclone.nix +++ b/hosts/chunk/rclone.nix @@ -14,15 +14,14 @@ let --config ${config.sops.secrets."rclone/config".path} \ --allow-other \ --cache-dir /var/cache/rclone \ - --transfers 64 \ - --vfs-cache-mode full \ + --transfers 16 \ + --vfs-cache-mode writes \ --vfs-cache-min-free-space 5G \ --dir-cache-time 30d \ - --no-checksum \ --no-modtime \ --vfs-fast-fingerprint \ - --vfs-read-chunk-size 8M \ - --vfs-read-chunk-streams 16 \ + --vfs-read-chunk-size 128M \ + --vfs-read-chunk-streams 0 \ --sftp-concurrency 64 \ --sftp-chunk-size 255k \ --buffer-size 0 \ diff --git a/hosts/ytnix/default.nix b/hosts/ytnix/default.nix index 2ee496b..718a85e 100644 --- a/hosts/ytnix/default.nix +++ b/hosts/ytnix/default.nix @@ -360,8 +360,6 @@ ]; }; - services.trezord.enable = true; - programs.xwayland.enable = true; services.udev.extraHwdb = '' @@ -386,7 +384,7 @@ programs.ccache.enable = true; nix.settings.extra-sandbox-paths = [ config.programs.ccache.cacheDir ]; programs.fuse.userAllowOther = true; - nix.settings.sandbox = false; + nix.settings.sandbox = true; programs.ssh.startAgent = true;