feat(bin-cache): nixci -> nix-fast-build
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
a8ec0fcfff
commit
d31502f1da
6 changed files with 20 additions and 16 deletions
|
@ -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;
|
||||
|
|
|
@ -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";
|
||||
}
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
|
BIN
flake.lock
BIN
flake.lock
Binary file not shown.
BIN
flake.nix
BIN
flake.nix
Binary file not shown.
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue