From 19e31ff85b8ff95d0778b3efd14911f5d13f7e69 Mon Sep 17 00:00:00 2001 From: clerie Date: Fri, 21 Jul 2023 23:59:04 +0200 Subject: [PATCH] Add readme --- README.md | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..c0f44f3 --- /dev/null +++ b/README.md @@ -0,0 +1,21 @@ +# Update from Hydra + +Update a symlink to the current output of a hydra build. + +Usage: + +``` +update-from-hydra https://hydra.clerie.de/job/nixfiles/nixfiles/iso/latest-finished /var/www/html/installer https://nix-cache.clerie.de +``` + +NixOS Module: +``` +services.update-from-hydra = { + enable = true; + paths.iso = { + hydraUrl = "https://hydra.clerie.de/job/nixfiles/nixfiles/iso/latest-finished"; + updatePath = "/var/www/html/installer"; + storeUri = "https://nix-cache.clerie.de"; + }; +}; +```