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
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:
parent
8d3cdbac95
commit
db4bb56087
2 changed files with 5 additions and 5 deletions
|
@ -40,11 +40,11 @@ with lib; {
|
||||||
script = ''
|
script = ''
|
||||||
#!${pkgs.bash}/bin/bash
|
#!${pkgs.bash}/bin/bash
|
||||||
set -euxo pipefail
|
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
|
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')
|
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')
|
drvname=$(echo $doc | ${pkgs.jq}/bin/jq -r '.drvpath')
|
||||||
output=$(${pkgs.nix}/bin/nix-store -r $drvname)
|
output=$(${pkgs.nix}/bin/nix-store -r $drvname)
|
||||||
${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $output
|
${pkgs.nix}/bin/nix-env -p /nix/var/nix/profiles/system --set $output
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{...}: {
|
{config, ...}: {
|
||||||
imports = [
|
imports = [
|
||||||
./link-inputs.nix
|
./link-inputs.nix
|
||||||
./lix.nix
|
./lix.nix
|
||||||
|
@ -18,7 +18,7 @@
|
||||||
experimental-features = "nix-command flakes ca-derivations";
|
experimental-features = "nix-command flakes ca-derivations";
|
||||||
};
|
};
|
||||||
nix.gc = {
|
nix.gc = {
|
||||||
automatic = true;
|
automatic = config.nix.enable;
|
||||||
dates = "weekly";
|
dates = "weekly";
|
||||||
options = "--delete-older-than 7d";
|
options = "--delete-older-than 7d";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue