fix eval
Some checks failed
Hydra checks.x86_64-linux.containers-default Hydra build #22701 of nixos-config:pr618:checks.x86_64-linux.containers-default
Hydra nixosConfigurations.container-default-x86_64-linux Hydra build #22704 of nixos-config:pr618:nixosConfigurations.container-default-x86_64-linux
Hydra nixosConfigurations.container-default-aarch64-linux Hydra build #22702 of nixos-config:pr618:nixosConfigurations.container-default-aarch64-linux
Hydra nixosConfigurations.not522-installer Hydra build #22706 of nixos-config:pr618:nixosConfigurations.not522-installer
Hydra nixosConfigurations.not522 Hydra build #22705 of nixos-config:pr618:nixosConfigurations.not522
Hydra nixosConfigurations.container-default-riscv64-linux Hydra build #22703 of nixos-config:pr618:nixosConfigurations.container-default-riscv64-linux

This commit is contained in:
Charlotte 🦝 Delenk 2024-10-31 19:14:12 +01:00
parent 8d3cdbac95
commit db4bb56087
2 changed files with 5 additions and 5 deletions

View file

@ -40,11 +40,11 @@ with lib; {
script = ''
#!${pkgs.bash}/bin/bash
set -euxo pipefail
builds=$(${pkgs.curl}/bin/curl -H "accept: application/json" ${config.options.nix.auto-update.source} | ${pkgs.jq}/bin/jq -r '.evals[0].builds[]')
builds=$(${pkgs.curl}/bin/curl -H "accept: application/json" ${config.nix.auto-update.source} | ${pkgs.jq}/bin/jq -r '.evals[0].builds[]')
for build in $builds; do
doc=$(${pkgs.curl}/bin/curl -H "accept: application/json" ${config.options.nix.auto-update-hydraServer}/build/$build)
doc=$(${pkgs.curl}/bin/curl -H "accept: application/json" ${config.nix.auto-update.hydraServer}/build/$build)
jobname=$(echo $doc | ${pkgs.jq}/bin/jq -r '.job')
if [ "$jobname" = "${config.options.nix.auto-update.attr} ]; then
if [ "$jobname" = "${config.nix.auto-update.attr} ]; then
drvname=$(echo $doc | ${pkgs.jq}/bin/jq -r '.drvpath')
output=$(${pkgs.nix}/bin/nix-store -r $drvname)
${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $output

View file

@ -1,4 +1,4 @@
{...}: {
{config, ...}: {
imports = [
./link-inputs.nix
./lix.nix
@ -18,7 +18,7 @@
experimental-features = "nix-command flakes ca-derivations";
};
nix.gc = {
automatic = true;
automatic = config.nix.enable;
dates = "weekly";
options = "--delete-older-than 7d";
};