@@ -53,12 +53,33 @@ See `backend/src/config.rs` for all non-standard configuration options.
5353
5454The CLI tool allows you to interact with the Hibernation server, primarily for authenticating and pushing Nix store paths.
5555
56- You can install it from the binaries published to GitHub Releases or using Cargo :
56+ You can install it from the binaries published to GitHub Releases, using Cargo :
5757
5858` ` ` bash
5959cargo install --git https://github.com/ProfiiDev/hibernation hibernation
6060` ` `
6161
62+ Or in you nix config :
63+
64+ ` ` ` nix
65+ {
66+ inputs = {
67+ ...
68+ hibernation.url = "github:profiidev/hibernation/latest";
69+ }
70+ ...
71+ }
72+ ` ` `
73+
74+ ` ` ` nix
75+ { inputs, pkgs, ... }:
76+ {
77+ environment.systemPackages = with pkgs; [
78+ inputs.hibernation.packages.${stdenv.hostPlatform.system}.default
79+ ];
80+ }
81+ ` ` `
82+
6283# ## Pushing Nix Store Paths
6384
64851. To push a Nix store path to the Hibernation server you first need a signing key pair. You can generate a new secret key using the following command :
@@ -77,7 +98,7 @@ cargo install --git https://github.com/ProfiiDev/hibernation hibernation
7798
78994. Use the following command from the cli to push paths (all missing configuration will be prompted for) :
79100 ` ` ` bash
80- hibernation push /nix/store/your-store-path
101+ hibernation push <cache-name> /nix/store/your-store-path
81102 ` ` `
82103
83104# # Deployment
@@ -111,7 +132,9 @@ Once running, the services will be available at:
111132
112133# # TODO
113134
114- - cli flake install docs
115- - github action for cache and cli setup
135+ - nix api support byte range queries
136+ - move url setting from frontend to env var and document in readme
137+ - add support for virtual host based cache access (requires more restrictions on cache names)
138+ - document action usage in readme
116139- add overview page in frontend
117140- nix store watch mode in cli + auto push + example in cache page
0 commit comments