mirror of
https://github.com/RGBCube/ncc
synced 2025-07-27 18:17:44 +00:00
fix: don't depend on yourself as a cacher
This commit is contained in:
parent
81fe7baaac
commit
ff3b3f9be2
1 changed files with 9 additions and 2 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue