···7171 `globalRedirect` can now have redirect codes other than 301 through
7272 `redirectCode`.
73737474+- [](#opt-boot.kernel.sysctl._net.core.wmem_max_) changed from a string to an integer because of the addition of a custom merge option (taking the highest value defined to avoid conflicts between 2 services trying to set that value), just as [](#opt-boot.kernel.sysctl._net.core.rmem_max_) since 22.11.
7575+7476- Gitea 1.21 upgrade has several breaking changes, including:
7577 - Custom themes and other assets that were previously stored in `custom/public/*` now belong in `custom/public/assets/*`
7678 - New instances of Gitea using MySQL now ignore the `[database].CHARSET` config option and always use the `utf8mb4` charset, existing instances should migrate via the `gitea doctor convert` CLI command.
+16-8
nixos/modules/config/sysctl.nix
···2121 options = {
22222323 boot.kernel.sysctl = mkOption {
2424- type = types.submodule {
2424+ type = let
2525+ highestValueType = types.ints.unsigned // {
2626+ merge = loc: defs:
2727+ foldl
2828+ (a: b: if b.value == null then null else lib.max a b.value)
2929+ 0
3030+ (filterOverrides defs);
3131+ };
3232+ in types.submodule {
2533 freeformType = types.attrsOf sysctlOption;
2634 options."net.core.rmem_max" = mkOption {
2727- type = types.nullOr types.ints.unsigned // {
2828- merge = loc: defs:
2929- foldl
3030- (a: b: if b.value == null then null else lib.max a b.value)
3131- 0
3232- (filterOverrides defs);
3333- };
3535+ type = types.nullOr highestValueType;
3436 default = null;
3537 description = lib.mdDoc "The maximum socket receive buffer size. In case of conflicting values, the highest will be used.";
3838+ };
3939+4040+ options."net.core.wmem_max" = mkOption {
4141+ type = types.nullOr highestValueType;
4242+ default = null;
4343+ description = lib.mdDoc "The maximum socket send buffer size. In case of conflicting values, the highest will be used.";
3644 };
3745 };
3846 default = {};
+1-1
nixos/modules/services/torrent/transmission.nix
···434434 # at least up to the values hardcoded here:
435435 (mkIf cfg.settings.utp-enabled {
436436 "net.core.rmem_max" = mkDefault 4194304; # 4MB
437437- "net.core.wmem_max" = mkDefault "1048576"; # 1MB
437437+ "net.core.wmem_max" = mkDefault 1048576; # 1MB
438438 })
439439 (mkIf cfg.performanceNetParameters {
440440 # Increase the number of available source (local) TCP and UDP ports to 49151.