feat(bin-cache): nixci -> nix-fast-build
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-04-22 13:51:31 -04:00
parent a8ec0fcfff
commit d31502f1da
6 changed files with 20 additions and 16 deletions

View file

@ -43,8 +43,14 @@ in {
text = "alejandra \"$@\""; text = "alejandra \"$@\"";
}) })
]; ];
};
file."${flakeDir}/.nixd.json".text = builtins.toJSON { xdg.dataFile = optionalAttrs neovimIde {
".gradle/gradle.properties".text = ''
org.gradle.java.home = ${javaSdk}
'';
"${flakeDir}/.nixd.json".text = builtins.toJSON {
nixpkgs = { nixpkgs = {
expr = "import (builtins.getFlake \"${flakeDir}\").inputs.nixpkgs {}"; expr = "import (builtins.getFlake \"${flakeDir}\").inputs.nixpkgs {}";
}; };
@ -54,12 +60,6 @@ in {
}; };
}; };
xdg.dataFile = optionalAttrs neovimIde {
".gradle/gradle.properties".text = ''
org.gradle.java.home = ${javaSdk}
'';
};
programs = { programs = {
java = optionalAttrs neovimIde { java = optionalAttrs neovimIde {
enable = true; enable = true;

View file

@ -1,8 +1,8 @@
pkgs: pkgs:
pkgs.dockerTools.pullImage { pkgs.dockerTools.pullImage {
imageName = "ghcr.io/linuxserver/radarr"; imageName = "ghcr.io/linuxserver/radarr";
imageDigest = "sha256:de7e51182113b430d9b6cb93ebc3389e1c73f11e7eabf47d0af5de106cdc296a"; imageDigest = "sha256:e6bccb9bd69f3dba111716c6789152d5577217adc27f8f96642e511defaefbb6";
sha256 = "10vhh5alacsifsskh2ylgam06h2i695ggav19w1ksa60szmh5wfa"; sha256 = "1j5svym7s6b83w6pf12bm0fa3vx10hx47hhfk9ywvji1nz4zj429";
finalImageName = "ghcr.io/linuxserver/radarr"; finalImageName = "ghcr.io/linuxserver/radarr";
finalImageTag = "latest"; finalImageTag = "latest";
} }

View file

@ -5,14 +5,19 @@
}: let }: let
inherit (config.vars) mainUser; inherit (config.vars) mainUser;
inherit (config.sops) secrets; inherit (config.sops) secrets;
nix-fast-buildPkg = pkgs.writeShellApplication {
name = "nix-fast-build";
text = "nix run github:Mic92/nix-fast-build \"$@\"";
};
in { in {
services.nix-serve = { services.nix-serve = {
enable = true; enable = true;
secretKeyFile = secrets.binary-cache-key.path; secretKeyFile = secrets.binary-cache-key.path;
}; };
environment.systemPackages = with pkgs; [ environment.systemPackages = [
nixci nix-fast-buildPkg
]; ];
# Populate cache # Populate cache
@ -27,7 +32,7 @@ in {
path = with pkgs; [ path = with pkgs; [
git git
nix nix
nixci nix-fast-buildPkg
openssh openssh
]; ];
@ -38,8 +43,7 @@ in {
fi fi
git clone https://git.nelim.org/matt1432/nixos-configs.git nix-clone git clone https://git.nelim.org/matt1432/nixos-configs.git nix-clone
cd nix-clone cd nix-clone
nix flake update nix-fast-build
nixci .
cd .. cd ..
rm -r nix-clone rm -r nix-clone
''; '';

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

@ -5,7 +5,7 @@
# - mozilla-addons-to-nix # - mozilla-addons-to-nix
# - alejandra # - alejandra
# - updateImages # - updateImages
# - nixci # - nix-fast-build
parseFetchurl() { parseFetchurl() {
URL="$1" URL="$1"
@ -85,7 +85,7 @@ doAll() {
updateFFZ updateFFZ
updateFirefoxAddons updateFirefoxAddons
updateVuetorrent updateVuetorrent
nixci nix-fast-build
} }
doAllWithoutDocker() { doAllWithoutDocker() {