feat(bin-cache): nixci -> nix-fast-build

This commit is contained in:
matt1432 2024-04-22 13:51:31 -04:00
parent a8ec0fcfff
commit d31502f1da
6 changed files with 97 additions and 76 deletions
devices
nos/modules/arion/media/radarr/images
servivi/modules

View file

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

View file

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