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 \"$@\"";
})
];
};
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 = {
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 = {
java = optionalAttrs neovimIde {
enable = true;

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
'';

Binary file not shown.

BIN
flake.nix

Binary file not shown.

View file

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