1
Fork 0
mirror of https://github.com/RGBCube/ncc synced 2025-07-27 10:07:44 +00:00

fix: don't depend on yourself as a cacher

This commit is contained in:
RGBCube 2025-04-13 02:44:30 +03:00
parent 81fe7baaac
commit ff3b3f9be2
Signed by: RGBCube
SSH key fingerprint: SHA256:CzqbPcfwt+GxFYNnFVCqoN5Itn4YFrshg1TrnACpA5M

View file

@ -1,5 +1,5 @@
{ self, config, inputs, lib, pkgs, ... }: let { self, config, inputs, lib, pkgs, ... }: let
inherit (lib) attrValues attrsToList concatStringsSep const disabled filter filterAttrs flip id isType mapAttrs mapAttrsToList merge mkAfter optionalAttrs optionals; inherit (lib) attrValues attrsToList concatStringsSep const disabled filter filterAttrs flip id isType mapAttrs mapAttrsToList match merge mkAfter optionalAttrs optionals;
inherit (lib.strings) toJSON; inherit (lib.strings) toJSON;
registryMap = inputs registryMap = inputs
@ -42,7 +42,14 @@ in {
|> mapAttrs (_: flake: { inherit flake; }); |> mapAttrs (_: flake: { inherit flake; });
nix.settings = (import <| self + /flake.nix).nixConfig nix.settings = (import <| self + /flake.nix).nixConfig
|> flip removeAttrs (optionals config.isDarwin [ "use-cgroups" ]); |> flip removeAttrs (optionals config.isDarwin [ "use-cgroups" ])
|> (if config.services.nix-serve.enable then
(cfg: cfg // {
extra-substituters = cfg.extra-substituters
|> filter (x: match ".*cache.rgbcu.be.*" x != null);
})
else
id);
nix.optimise.automatic = true; nix.optimise.automatic = true;