llama.cpp installed, games in progress
This commit is contained in:
parent
530c67601a
commit
6fc02cb1e1
9 changed files with 41 additions and 16 deletions
|
|
@ -60,13 +60,12 @@
|
|||
tmpfiles.rules = [ "d /srv/tftp" ];
|
||||
services.pxeboot = {
|
||||
before = [ "nfs-server.service" ];
|
||||
after = [ "wg-quick-awg0.service" ];
|
||||
requiredBy = [ "nfs-server.service" ];
|
||||
requires = [ "wg-quick-awg0.service" ];
|
||||
path = with pkgs; [ xz curl e2fsprogs grub2_efi util-linux ];
|
||||
serviceConfig = {
|
||||
Type = "oneshot";
|
||||
RemainAfterExit = true;
|
||||
TimeoutStartSec = "infinity";
|
||||
ExecStop = pkgs.writeShellScript "stop.sh" ''
|
||||
set -e
|
||||
for distro in arch fedora; do
|
||||
|
|
@ -130,6 +129,7 @@
|
|||
mkdir -p /srv/nfs/$distro
|
||||
cd /srv/nfs/$distro
|
||||
if [ ! -e $distro.iso ]; then
|
||||
until curl --head --max-time 3 https://www.google.com; do sleep 5; done
|
||||
curl -C - "$url" -Lo $distro.iso.tmp
|
||||
mv $distro.iso{.tmp,}
|
||||
sha256sum $distro.iso | grep $hash
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue