fix (?) hydra eval
This commit is contained in:
parent
f6b22a776e
commit
5376be449f
|
@ -1,41 +1,18 @@
|
||||||
{ 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 = {
|
profiles.chayleaf = {
|
||||||
chayleaf = {
|
|
||||||
extensions = with config.nur.repos.rycee.firefox-addons; [
|
extensions = with config.nur.repos.rycee.firefox-addons; [
|
||||||
cookies-txt
|
cookies-txt
|
||||||
don-t-fuck-with-paste
|
don-t-fuck-with-paste
|
||||||
|
@ -63,5 +40,4 @@
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -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 ];
|
||||||
});*/
|
});*/
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in a new issue