diff options
author | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-01-26 02:52:21 +0900 |
---|---|---|
committer | Nguyễn Gia Phong <mcsinyx@disroot.org> | 2023-01-26 02:52:21 +0900 |
commit | ea1e82c58d4b36f5ac194f6b901425cdf99f2661 (patch) | |
tree | 2db28963f0aff04b822ad4c8ee5ff5c0cec98e60 /live.nix | |
parent | f7720b2207b33fd60ef945662c261c1468e377f7 (diff) | |
download | px-ea1e82c58d4b36f5ac194f6b901425cdf99f2661.tar.gz |
Add live reloading facilities
Diffstat (limited to 'live.nix')
-rw-r--r-- | live.nix | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/live.nix b/live.nix new file mode 100644 index 0000000..b18b5ad --- /dev/null +++ b/live.nix @@ -0,0 +1,9 @@ +with import <nixpkgs> {}; +mkShell { + packages = [ busybox epeg libxslt webfs ]; + shellHook = '' + make -j $(nproc) live + webfsd -p 28792 -f index.xml + trap "kill $(pgrep -f 'webfsd -p 28792')" EXIT INT TERM + ''; +} |