My nix-darwin and NixOS config
3
fork

Configure Feed

Select the types of activity you want to include in your feed.

feat: unlimited size limits

+16
+16
home/default.nix
··· 94 94 95 95 programs.home-manager.enable = true; 96 96 97 + # ── Nextcloud desktop client: allow syncing files of any size ──────────── 98 + # The client defaults to blocking files over ~500 MB. This activation script 99 + # patches the setting in-place so credentials/tokens in the file are preserved. 100 + home.activation.nextcloudMaxSize = lib.mkIf cfg.isDesktop ( 101 + lib.hm.dag.entryAfter [ "writeBoundary" ] '' 102 + cfg_file="$HOME/.config/Nextcloud/nextcloud.cfg" 103 + if [ -f "$cfg_file" ]; then 104 + if grep -q "maxSizeEnabled" "$cfg_file"; then 105 + $DRY_RUN_CMD ${pkgs.gnused}/bin/sed -i 's/^maxSizeEnabled=.*/maxSizeEnabled=false/' "$cfg_file" 106 + else 107 + $DRY_RUN_CMD ${pkgs.gnused}/bin/sed -i '/\[General\]/a maxSizeEnabled=false' "$cfg_file" 108 + fi 109 + fi 110 + '' 111 + ); 112 + 97 113 fonts.fontconfig.enable = true; 98 114 99 115 # ── Linux-only theming ────────────────────────────────────────────────────