Charlotte 🦝 Delenk
236e88e9d1
All checks were successful
Hydra packages.aarch64-linux.python-simplefuzzyset Hydra build #15186 of nixos-config:pr581:packages.aarch64-linux.python-simplefuzzyset
Hydra packages.x86_64-linux.plover-plugin-emoji Hydra build #15226 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-emoji
Hydra packages.x86_64-linux.miifox-net Hydra build #15218 of nixos-config:pr581:packages.x86_64-linux.miifox-net
Hydra packages.aarch64-linux.plover Hydra build #15167 of nixos-config:pr581:packages.aarch64-linux.plover
Hydra packages.aarch64-linux.fairfax-hd Hydra build #15154 of nixos-config:pr581:packages.aarch64-linux.fairfax-hd
Hydra packages.aarch64-linux.plover-plugin-last-translation Hydra build #15173 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-last-translation
Hydra packages.x86_64-linux.plover-plugin-modal-dictionary Hydra build #15230 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-modal-dictionary
Hydra packages.x86_64-linux.plover-plugin-last-translation Hydra build #15228 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-last-translation
Hydra packages.aarch64-linux.miifox-net Hydra build #15163 of nixos-config:pr581:packages.aarch64-linux.miifox-net
Hydra packages.x86_64-linux.plover-plugin-lapwing-aio Hydra build #15227 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-lapwing-aio
Hydra packages.x86_64-linux.mautrix-slack Hydra build #15215 of nixos-config:pr581:packages.x86_64-linux.mautrix-slack
Hydra packages.x86_64-linux.plover-plugin-stenotype-extended Hydra build #15233 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-stenotype-extended
Hydra packages.x86_64-linux.emoji-lotte Hydra build #15194 of nixos-config:pr581:packages.x86_64-linux.emoji-lotte
Hydra packages.x86_64-linux.emoji-volpeon-blobfox Hydra build #15197 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-blobfox
Hydra packages.x86_64-linux.alco-sans Hydra build #15189 of nixos-config:pr581:packages.x86_64-linux.alco-sans
Hydra packages.aarch64-linux.emoji-volpeon-bunhd-flip Hydra build #15144 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-bunhd-flip
Hydra packages.aarch64-linux.emoji-volpeon-drgn Hydra build #15145 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-drgn
Hydra packages.x86_64-linux.kreative-square Hydra build #15211 of nixos-config:pr581:packages.x86_64-linux.kreative-square
Hydra packages.aarch64-linux.emoji-caro Hydra build #15137 of nixos-config:pr581:packages.aarch64-linux.emoji-caro
Hydra nixos-8gb-fsn1-1.x86_64-linux Hydra build #15132 of nixos-config:pr581:nixos-8gb-fsn1-1.x86_64-linux
Hydra packages.aarch64-linux.mautrix-telegram Hydra build #15161 of nixos-config:pr581:packages.aarch64-linux.mautrix-telegram
Hydra packages.aarch64-linux.emoji-volpeon-blobfox-flip Hydra build #15142 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-blobfox-flip
Hydra packages.aarch64-linux.asar-asm Hydra build #15134 of nixos-config:pr581:packages.aarch64-linux.asar-asm
Hydra devShell.x86_64-linux Hydra build #15127 of nixos-config:pr581:devShell.x86_64-linux
Hydra packages.x86_64-linux.emoji-rosaflags Hydra build #15196 of nixos-config:pr581:packages.x86_64-linux.emoji-rosaflags
Hydra packages.aarch64-linux.nasin-nanpa Hydra build #15164 of nixos-config:pr581:packages.aarch64-linux.nasin-nanpa
Hydra packages.aarch64-linux.emoji-volpeon-bunhd Hydra build #15143 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-bunhd
Hydra packages.aarch64-linux.lotte-art Hydra build #15157 of nixos-config:pr581:packages.aarch64-linux.lotte-art
Hydra packages.x86_64-linux.plover-plugin-machine-hid Hydra build #15229 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-machine-hid
Hydra packages.x86_64-linux.emoji-volpeon-drgn Hydra build #15201 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-drgn
Hydra packages.x86_64-linux.fairfax Hydra build #15209 of nixos-config:pr581:packages.x86_64-linux.fairfax
Hydra packages.x86_64-linux.bsnes-plus Hydra build #15191 of nixos-config:pr581:packages.x86_64-linux.bsnes-plus
Hydra packages.aarch64-linux.matrix-media-repo Hydra build #15158 of nixos-config:pr581:packages.aarch64-linux.matrix-media-repo
Hydra packages.aarch64-linux.plover-plugin-stenotype-extended Hydra build #15178 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-stenotype-extended
Hydra packages.x86_64-linux.mautrix-discord Hydra build #15214 of nixos-config:pr581:packages.x86_64-linux.mautrix-discord
Hydra packages.aarch64-linux.emoji-volpeon-raccoon Hydra build #15151 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-raccoon
Hydra packages.aarch64-linux.plover-plugins-manager Hydra build #15182 of nixos-config:pr581:packages.aarch64-linux.plover-plugins-manager
Hydra packages.aarch64-linux.emoji-volpeon-gphn Hydra build #15148 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-gphn
Hydra packages.aarch64-linux.plover-plugin-python-dictionary Hydra build #15176 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-python-dictionary
Hydra packages.x86_64-linux.emoji-volpeon-raccoon Hydra build #15207 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-raccoon
Hydra packages.aarch64-linux.old-homepage Hydra build #15165 of nixos-config:pr581:packages.aarch64-linux.old-homepage
Hydra packages.x86_64-linux.emoji-volpeon-vlpn Hydra build #15208 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-vlpn
Hydra packages.x86_64-linux.old-homepage Hydra build #15220 of nixos-config:pr581:packages.x86_64-linux.old-homepage
Hydra packages.x86_64-linux.lotte-art Hydra build #15212 of nixos-config:pr581:packages.x86_64-linux.lotte-art
Hydra packages.aarch64-linux.plover-plugin-lapwing-aio Hydra build #15172 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-lapwing-aio
Hydra packages.aarch64-linux.emoji-raccoon Hydra build #15139 of nixos-config:pr581:packages.aarch64-linux.emoji-raccoon
Hydra packages.x86_64-linux.papermc Hydra build #15221 of nixos-config:pr581:packages.x86_64-linux.papermc
Hydra packages.x86_64-linux.yiffstash Hydra build #15243 of nixos-config:pr581:packages.x86_64-linux.yiffstash
Hydra packages.x86_64-linux.emoji-volpeon-fox Hydra build #15203 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-fox
Hydra packages.aarch64-linux.emoji-volpeon-floof Hydra build #15146 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-floof
Hydra packages.x86_64-linux.asar-asm Hydra build #15190 of nixos-config:pr581:packages.x86_64-linux.asar-asm
Hydra packages.aarch64-linux.emoji-volpeon-fox Hydra build #15147 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-fox
Hydra packages.x86_64-linux.python-simplefuzzyset Hydra build #15241 of nixos-config:pr581:packages.x86_64-linux.python-simplefuzzyset
Hydra packages.aarch64-linux.mautrix-whatsapp Hydra build #15162 of nixos-config:pr581:packages.aarch64-linux.mautrix-whatsapp
Hydra packages.aarch64-linux.plover-plugin-emoji Hydra build #15171 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-emoji
Hydra packages.aarch64-linux.python-mautrix Hydra build #15183 of nixos-config:pr581:packages.aarch64-linux.python-mautrix
Hydra packages.aarch64-linux.papermc Hydra build #15166 of nixos-config:pr581:packages.aarch64-linux.papermc
Hydra packages.aarch64-linux.plover-dict-didoesdigital Hydra build #15168 of nixos-config:pr581:packages.aarch64-linux.plover-dict-didoesdigital
Hydra packages.x86_64-linux.plover-plugin-yaml-dictionary Hydra build #15236 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-yaml-dictionary
Hydra packages.x86_64-linux.plover-plugin-tapey-tape Hydra build #15235 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-tapey-tape
Hydra packages.x86_64-linux.plover-plugin-dict-commands Hydra build #15224 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-dict-commands
Hydra packages.x86_64-linux.emoji-volpeon-blobfox-flip Hydra build #15198 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-blobfox-flip
Hydra packages.aarch64-linux.constructium Hydra build #15136 of nixos-config:pr581:packages.aarch64-linux.constructium
Hydra packages.x86_64-linux.plover-plugin-dotool-output Hydra build #15225 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-dotool-output
Hydra packages.aarch64-linux.plover-plugin-rkb1-hid Hydra build #15177 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-rkb1-hid
Hydra packages.aarch64-linux.python-rtf-tokenize Hydra build #15185 of nixos-config:pr581:packages.aarch64-linux.python-rtf-tokenize
Hydra packages.x86_64-linux.python-rtf-tokenize Hydra build #15240 of nixos-config:pr581:packages.x86_64-linux.python-rtf-tokenize
Hydra packages.x86_64-linux.emoji-volpeon-neofox Hydra build #15206 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-neofox
Hydra packages.x86_64-linux.python-mautrix Hydra build #15238 of nixos-config:pr581:packages.x86_64-linux.python-mautrix
Hydra packages.aarch64-linux.python-tulir-telethon Hydra build #15187 of nixos-config:pr581:packages.aarch64-linux.python-tulir-telethon
Hydra packages.aarch64-linux.plover-plugin-modal-dictionary Hydra build #15175 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-modal-dictionary
Hydra packages.x86_64-linux.plover-plugins-manager Hydra build #15237 of nixos-config:pr581:packages.x86_64-linux.plover-plugins-manager
Hydra packages.x86_64-linux.emoji-caro Hydra build #15193 of nixos-config:pr581:packages.x86_64-linux.emoji-caro
Hydra packages.x86_64-linux.plover-plugin-python-dictionary Hydra build #15231 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-python-dictionary
Hydra packages.aarch64-linux.emoji-volpeon-neocat Hydra build #15149 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-neocat
Hydra packages.aarch64-linux.yiffstash Hydra build #15188 of nixos-config:pr581:packages.aarch64-linux.yiffstash
Hydra packages.aarch64-linux.alco-sans Hydra build #15133 of nixos-config:pr581:packages.aarch64-linux.alco-sans
Hydra packages.aarch64-linux.mautrix-discord Hydra build #15159 of nixos-config:pr581:packages.aarch64-linux.mautrix-discord
Hydra packages.x86_64-linux.python-plover-stroke Hydra build #15239 of nixos-config:pr581:packages.x86_64-linux.python-plover-stroke
Hydra packages.x86_64-linux.emoji-raccoon Hydra build #15195 of nixos-config:pr581:packages.x86_64-linux.emoji-raccoon
Hydra packages.x86_64-linux.matrix-media-repo Hydra build #15213 of nixos-config:pr581:packages.x86_64-linux.matrix-media-repo
Hydra packages.x86_64-linux.emoji-volpeon-neocat Hydra build #15205 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-neocat
Hydra packages.aarch64-linux.plover-plugin-stitching Hydra build #15179 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-stitching
Hydra packages.aarch64-linux.plover-plugin-machine-hid Hydra build #15174 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-machine-hid
Hydra packages.aarch64-linux.fairfax Hydra build #15153 of nixos-config:pr581:packages.aarch64-linux.fairfax
Hydra packages.x86_64-linux.fairfax-hd Hydra build #15210 of nixos-config:pr581:packages.x86_64-linux.fairfax-hd
Hydra packages.aarch64-linux.mautrix-slack Hydra build #15160 of nixos-config:pr581:packages.aarch64-linux.mautrix-slack
Hydra packages.aarch64-linux.bsnes-plus Hydra build #15135 of nixos-config:pr581:packages.aarch64-linux.bsnes-plus
Hydra packages.x86_64-linux.emoji-volpeon-floof Hydra build #15202 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-floof
Hydra packages.x86_64-linux.nasin-nanpa Hydra build #15219 of nixos-config:pr581:packages.x86_64-linux.nasin-nanpa
Hydra packages.aarch64-linux.emoji-lotte Hydra build #15138 of nixos-config:pr581:packages.aarch64-linux.emoji-lotte
Hydra packages.x86_64-linux.plover-dict-didoesdigital Hydra build #15223 of nixos-config:pr581:packages.x86_64-linux.plover-dict-didoesdigital
Hydra packages.x86_64-linux.emoji-volpeon-bunhd Hydra build #15199 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-bunhd
Hydra packages.aarch64-linux.plover-plugin-yaml-dictionary Hydra build #15181 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-yaml-dictionary
Hydra packages.aarch64-linux.python-plover-stroke Hydra build #15184 of nixos-config:pr581:packages.aarch64-linux.python-plover-stroke
Hydra packages.aarch64-linux.plover-plugin-dict-commands Hydra build #15169 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-dict-commands
Hydra packages.x86_64-linux.emoji-volpeon-gphn Hydra build #15204 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-gphn
Hydra packages.aarch64-linux.emoji-volpeon-vlpn Hydra build #15152 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-vlpn
Hydra packages.x86_64-linux.constructium Hydra build #15192 of nixos-config:pr581:packages.x86_64-linux.constructium
Hydra packages.x86_64-linux.python-tulir-telethon Hydra build #15242 of nixos-config:pr581:packages.x86_64-linux.python-tulir-telethon
Hydra packages.aarch64-linux.plover-plugin-dotool-output Hydra build #15170 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-dotool-output
Hydra packages.aarch64-linux.kreative-square Hydra build #15155 of nixos-config:pr581:packages.aarch64-linux.kreative-square
Hydra packages.aarch64-linux.linux-devterm Hydra build #15156 of nixos-config:pr581:packages.aarch64-linux.linux-devterm
Hydra packages.aarch64-linux.emoji-volpeon-blobfox Hydra build #15141 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-blobfox
Hydra packages.x86_64-linux.plover Hydra build #15222 of nixos-config:pr581:packages.x86_64-linux.plover
Hydra packages.x86_64-linux.mautrix-whatsapp Hydra build #15217 of nixos-config:pr581:packages.x86_64-linux.mautrix-whatsapp
Hydra packages.x86_64-linux.plover-plugin-rkb1-hid Hydra build #15232 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-rkb1-hid
Hydra instance-20221213-1915.aarch64-linux Hydra build #15130 of nixos-config:pr581:instance-20221213-1915.aarch64-linux
Hydra packages.aarch64-linux.plover-plugin-tapey-tape Hydra build #15180 of nixos-config:pr581:packages.aarch64-linux.plover-plugin-tapey-tape
Hydra packages.x86_64-linux.emoji-volpeon-bunhd-flip Hydra build #15200 of nixos-config:pr581:packages.x86_64-linux.emoji-volpeon-bunhd-flip
Hydra packages.aarch64-linux.emoji-volpeon-neofox Hydra build #15150 of nixos-config:pr581:packages.aarch64-linux.emoji-volpeon-neofox
Hydra packages.x86_64-linux.plover-plugin-stitching Hydra build #15234 of nixos-config:pr581:packages.x86_64-linux.plover-plugin-stitching
Hydra packages.x86_64-linux.mautrix-telegram Hydra build #15216 of nixos-config:pr581:packages.x86_64-linux.mautrix-telegram
Hydra installer.x86_64-linux Hydra build #15129 of nixos-config:pr581:installer.x86_64-linux
Hydra packages.aarch64-linux.emoji-rosaflags Hydra build #15140 of nixos-config:pr581:packages.aarch64-linux.emoji-rosaflags
Hydra vf2.riscv64-linux Hydra build #15246 of nixos-config:pr581:vf2.riscv64-linux
Hydra thinkrac.x86_64-linux Hydra build #15245 of nixos-config:pr581:thinkrac.x86_64-linux
Hydra rainbow-resort.x86_64-linux Hydra build #15244 of nixos-config:pr581:rainbow-resort.x86_64-linux
Hydra nas.x86_64-linux Hydra build #15131 of nixos-config:pr581:nas.x86_64-linux
Hydra devterm.aarch64-linux Hydra build #15128 of nixos-config:pr581:devterm.aarch64-linux
210 lines
6 KiB
Nix
210 lines
6 KiB
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
system,
|
|
attic,
|
|
...
|
|
}: {
|
|
imports = [
|
|
./workarounds
|
|
];
|
|
nixpkgs.config.allowUnfree = true;
|
|
nix = {
|
|
settings = {
|
|
sandbox = true;
|
|
trusted-users = ["@wheel" "remote-build"];
|
|
require-sigs = true;
|
|
builders-use-substitutes = true;
|
|
substituters = [
|
|
"https://attic.chir.rs/chir-rs/"
|
|
"https://hydra.int.chir.rs"
|
|
];
|
|
trusted-public-keys = [
|
|
"nixcache:8KKuGz95Pk4UJ5W/Ni+pN+v+LDTkMMFV4yrGmAYgkDg="
|
|
"hydra.nixos.org-1:CNHJZBh9K4tP3EKF6FkkgeVYsS3ohTl+oS0Qa8bezVs="
|
|
"chir-rs:rzK1Czm3RqBbZLnXYrLM6JyOhfr6Z/8lhACIPO/LNFQ="
|
|
];
|
|
auto-optimise-store = true;
|
|
};
|
|
extraOptions = ''
|
|
experimental-features = nix-command flakes ca-derivations
|
|
builders-use-substitutes = true
|
|
'';
|
|
gc = {
|
|
automatic = true;
|
|
dates = "weekly";
|
|
options = "--delete-older-than 7d";
|
|
};
|
|
buildMachines = with lib;
|
|
mkMerge [
|
|
(mkIf (config.networking.hostName != "instance-20221213-1915") [
|
|
{
|
|
hostName = "build-aarch64";
|
|
systems = [
|
|
"aarch64-linux"
|
|
"riscv32-linux"
|
|
"riscv64-linux"
|
|
];
|
|
maxJobs = 4;
|
|
speedFactor = 1;
|
|
supportedFeatures = ["nixos-test" "benchmark" "ca-derivations" "gccarch-armv8-a" "gccarch-armv8.1-a" "gccarch-armv8.2-a" "big-parallel"];
|
|
}
|
|
])
|
|
(mkIf (config.networking.hostName != "nas") [
|
|
{
|
|
hostName = "build-nas";
|
|
systems = [
|
|
"i686-linux"
|
|
"x86_64-linux"
|
|
"armv7l-linux"
|
|
"powerpc-linux"
|
|
"powerpc64-linux"
|
|
"powerpc64le-linux"
|
|
"wasm32-wasi"
|
|
"riscv32-linux"
|
|
"riscv64-linux"
|
|
];
|
|
maxJobs = 12;
|
|
speedFactor = 1;
|
|
supportedFeatures = [
|
|
"kvm"
|
|
"nixos-test"
|
|
"big-parallel"
|
|
"benchmark"
|
|
"gccarch-znver1"
|
|
"gccarch-skylake"
|
|
"ca-derivations"
|
|
];
|
|
}
|
|
])
|
|
(mkIf (config.networking.hostName != "rainbow-resort") [
|
|
{
|
|
hostName = "build-rainbow-resort";
|
|
systems = [
|
|
"i686-linux"
|
|
"x86_64-linux"
|
|
"armv7l-linux"
|
|
"powerpc-linux"
|
|
"powerpc64-linux"
|
|
"powerpc64le-linux"
|
|
"wasm32-wasi"
|
|
"riscv32-linux"
|
|
"riscv64-linux"
|
|
];
|
|
maxJobs = 16;
|
|
speedFactor = 1;
|
|
supportedFeatures = [
|
|
"kvm"
|
|
"nixos-test"
|
|
"big-parallel"
|
|
"benchmark"
|
|
"gccarch-skylake-avx512"
|
|
"gccarch-znver3"
|
|
"gccarch-znver2"
|
|
"gccarch-znver1"
|
|
"gccarch-skylake"
|
|
"ca-derivations"
|
|
];
|
|
}
|
|
])
|
|
(mkIf (config.networking.hostName != "vf2") [
|
|
{
|
|
hostName = "build-riscv";
|
|
systems = [
|
|
"riscv32-linux"
|
|
"riscv64-linux"
|
|
];
|
|
maxJobs = 4;
|
|
speedFactor = 2;
|
|
supportedFeatures = [
|
|
"nixos-test"
|
|
"big-parallel"
|
|
"benchmark"
|
|
"ca-derivations"
|
|
# There are many more combinations but i simply do not care lol
|
|
"gccarch-rv64gc_zba_zbb"
|
|
"gccarch-rv64gc_zba"
|
|
"gccarch-rv64gc_zbb"
|
|
"gccarch-rv64gc"
|
|
"gccarch-rv32gc_zba_zbb"
|
|
"gccarch-rv32gc_zba"
|
|
"gccarch-rv32gc_zbb"
|
|
"gccarch-rv32gc"
|
|
"native-riscv"
|
|
];
|
|
}
|
|
])
|
|
];
|
|
distributedBuilds = true;
|
|
};
|
|
systemd.services.nix-daemon.environment.TMPDIR = "/build";
|
|
systemd.services.nixos-upgrade = {
|
|
description = "NixOS Upgrade";
|
|
|
|
restartIfChanged = false;
|
|
unitConfig.X-StopOnRemoval = false;
|
|
|
|
serviceConfig.Type = "oneshot";
|
|
|
|
path = with pkgs; [
|
|
coreutils
|
|
gnutar
|
|
xz.bin
|
|
gzip
|
|
gitMinimal
|
|
config.nix.package.out
|
|
config.programs.ssh.package
|
|
jq
|
|
curl
|
|
];
|
|
|
|
script = lib.mkDefault ''
|
|
#!${pkgs.bash}/bin/bash
|
|
set -ex
|
|
builds=$(${pkgs.curl}/bin/curl -H 'accept: application/json' https://hydra.int.chir.rs/jobset/flakes/${
|
|
if config.networking.hostName != "vf2"
|
|
then "nixos-config"
|
|
else "nixos-config-riscv"
|
|
}/evals | ${pkgs.jq}/bin/jq -r '.evals[0].builds[]')
|
|
for build in $builds; do
|
|
doc=$(${pkgs.curl}/bin/curl -H 'accept: application/json' https://hydra.int.chir.rs/build/$build)
|
|
jobname=$(echo $doc | ${pkgs.jq}/bin/jq -r '.job')
|
|
if [ "$jobname" = "${config.networking.hostName}.${system}" ]; 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
|
|
|
|
${
|
|
if config.networking.hostName != "nixos-8gb-fsn1-1"
|
|
then ''
|
|
$output/bin/switch-to-configuration boot
|
|
booted="$(${pkgs.coreutils}/bin/readlink /run/booted-system/{initrd,kernel,kernel-modules})"
|
|
built="$(${pkgs.coreutils}/bin/readlink $output/{initrd,kernel,kernel-modules})"
|
|
if [ "$booted" = "$built" ]; then
|
|
$output/bin/switch-to-configuration switch
|
|
else
|
|
${pkgs.systemd}/bin/shutdown -r +1
|
|
fi
|
|
exit
|
|
''
|
|
else "$output/bin/switch-to-configuration switch"
|
|
}
|
|
fi
|
|
done
|
|
'';
|
|
after = ["network-online.target"];
|
|
wants = ["network-online.target"];
|
|
};
|
|
systemd.timers.nixos-upgrade = {
|
|
enable = true;
|
|
description = "Automatically update nixos";
|
|
requires = ["nixos-upgrade.service"];
|
|
wantedBy = ["multi-user.target"];
|
|
timerConfig = {
|
|
OnUnitActiveSec = "30min";
|
|
RandomizedDelaySec = "1h";
|
|
};
|
|
};
|
|
}
|