fix (?) hydra eval

This commit is contained in:
chayleaf 2023-10-18 18:47:35 +07:00
parent f6b22a776e
commit 5376be449f
3 changed files with 54 additions and 56 deletions

View file

@ -1,67 +1,43 @@
{ config, pkgs, ... }: { config, pkgs, ... }:
/*let firefoxWithCcache = ({ useSccache, firefox-unwrapped }:
(firefox-unwrapped.override {
buildMozillaMach = (x: (pkgs.buildMozillaMach (x // {
extraConfigureFlags = x.extraConfigureFlags ++ [
(if useSccache then "--with-ccache=sccache" else "--with-ccache")
];
})));
}).overrideAttrs (prev: if useSccache then {
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.sccache ];
SCCACHE_DIR = "/var/cache/sccache";
SCCACHE_MAX_FRAME_LENGTH = "104857600";
RUSTC_WRAPPER = "${pkgs.sccache}/bin/sccache";
} else {
nativeBuildInputs = prev.nativeBuildInputs ++ [ pkgs.ccache ];
CCACHE_CPP2 = "yes";
CCACHE_COMPRESS = "1";
CCACHE_UMASK = "007";
CCACHE_DIR = "/var/cache/ccache";
})
); in*/
{ {
imports = [ imports = [
./gui.nix ./gui.nix
]; ];
programs.firefox = { programs.firefox = {
enable = true; enable = true;
package = package = pkgs.wrapFirefox pkgs.librewolf-unwrapped {
pkgs.wrapFirefox pkgs.librewolf-unwrapped { inherit (pkgs.librewolf-unwrapped) extraPrefsFiles extraPoliciesFiles;
inherit (pkgs.librewolf-unwrapped) extraPrefsFiles extraPoliciesFiles; wmClass = "LibreWolf";
wmClass = "LibreWolf"; libName = "librewolf";
libName = "librewolf"; cfg.enableKeePassXC = true;
cfg.enableKeePassXC = true; };
}; profiles.chayleaf = {
profiles = { extensions = with config.nur.repos.rycee.firefox-addons; [
chayleaf = { cookies-txt
extensions = with config.nur.repos.rycee.firefox-addons; [ don-t-fuck-with-paste
cookies-txt greasemonkey
don-t-fuck-with-paste keepassxc-browser
greasemonkey libredirect
keepassxc-browser localcdn
libredirect noscript
localcdn privacy-pass
noscript protondb-for-steam
privacy-pass return-youtube-dislikes
protondb-for-steam rust-search-extension
return-youtube-dislikes search-by-image
rust-search-extension sponsorblock
search-by-image steam-database
sponsorblock ublock-origin
steam-database unpaywall
ublock-origin vimium-c
unpaywall youtube-shorts-block
vimium-c ] ++ (with pkgs.firefox-addons; [
youtube-shorts-block fastforwardteam
] ++ (with pkgs.firefox-addons; [ middle-mouse-button-scroll
fastforwardteam rikaitan
middle-mouse-button-scroll youtube-nonstop
rikaitan ]);
youtube-nonstop
]);
};
}; };
}; };
} }

View file

@ -10,6 +10,24 @@ let
inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools; inherit (pkgs) fetchgit fetchurl fetchFromGitHub dockerTools;
}; };
nixForNixPlugins = pkgs.nixVersions.nix_2_17; nixForNixPlugins = pkgs.nixVersions.nix_2_17;
buildCachedFirefox = useSccache: unwrapped:
(unwrapped.override {
buildMozillaMach = x: pkgs'.buildMozillaMach (x // {
extraConfigureFlags = (x.extraConfigureFlags or [])
++ lib.toList (if useSccache then "--with-ccache=sccache" else "--with-ccache");
});
}).overrideAttrs (prev: if useSccache then {
nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [ pkgs'.sccache ];
SCCACHE_DIR = "/var/cache/sccache";
SCCACHE_MAX_FRAME_LENGTH = "104857600";
RUSTC_WRAPPER = "${pkgs'.sccache}/bin/sccache";
} else {
nativeBuildInputs = (prev.nativeBuildInputs or []) ++ [ pkgs'.ccache ];
CCACHE_CPP2 = "yes";
CCACHE_COMPRESS = "1";
CCACHE_UMASK = "007";
CCACHE_DIR = "/var/cache/ccache";
});
in in
{ {
@ -62,6 +80,8 @@ in
clang-tools_latest = pkgs.clang-tools_16; clang-tools_latest = pkgs.clang-tools_16;
clang_latest = pkgs.clang_16; clang_latest = pkgs.clang_16;
buildFirefoxWithCcache = buildCachedFirefox false;
buildFirefoxWithSccache = buildCachedFirefox true;
/*ghidra = pkgs.ghidra.overrideAttrs (old: { /*ghidra = pkgs.ghidra.overrideAttrs (old: {
patches = old.patches ++ [ ./ghidra-stdcall.patch ]; patches = old.patches ++ [ ./ghidra-stdcall.patch ];
});*/ });*/

View file

@ -103,6 +103,8 @@ in {
"https://github.com/searxng/searxng/" "https://github.com/searxng/searxng/"
# required for home config (nvfetcher again) # required for home config (nvfetcher again)
"https://api.github.com/repos/FAForever/" "https://api.github.com/repos/FAForever/"
# for nginx CF-Connecting-IP config generation
"https://www.cloudflare.com/ips-"
]; ];
services.nginx.virtualHosts."binarycache.${cfg.domainName}" = { services.nginx.virtualHosts."binarycache.${cfg.domainName}" = {
quic = true; quic = true;