mirror of
https://github.com/RGBCube/agenix
synced 2025-07-29 01:37:44 +00:00
doc: add new doc website
* use mmdoc * add github pages action to auto publish * do not edit README for now, will follow up with a commit directs people to the doc site
This commit is contained in:
parent
4828951d9d
commit
657789137c
22 changed files with 602 additions and 3 deletions
38
doc/install-via-fetchtarball.md
Normal file
38
doc/install-via-fetchtarball.md
Normal file
|
@ -0,0 +1,38 @@
|
|||
# Install via fetchTarball {#install-via-fetchtarball}
|
||||
|
||||
#### Install module via fetchTarball
|
||||
|
||||
Add the following to your configuration.nix:
|
||||
|
||||
```nix
|
||||
{
|
||||
imports = [ "${builtins.fetchTarball "https://github.com/ryantm/agenix/archive/main.tar.gz"}/modules/age.nix" ];
|
||||
}
|
||||
```
|
||||
|
||||
or with pinning:
|
||||
|
||||
```nix
|
||||
{
|
||||
imports = let
|
||||
# replace this with an actual commit id or tag
|
||||
commit = "298b235f664f925b433614dc33380f0662adfc3f";
|
||||
in [
|
||||
"${builtins.fetchTarball {
|
||||
url = "https://github.com/ryantm/agenix/archive/${commit}.tar.gz";
|
||||
# update hash from nix build output
|
||||
sha256 = "";
|
||||
}}/modules/age.nix"
|
||||
];
|
||||
}
|
||||
```
|
||||
|
||||
#### Install CLI via fetchTarball
|
||||
|
||||
To install the `agenix` binary:
|
||||
|
||||
```nix
|
||||
{
|
||||
environment.systemPackages = [ (pkgs.callPackage "${builtins.fetchTarball "https://github.com/ryantm/agenix/archive/main.tar.gz"}/pkgs/agenix.nix" {}) ];
|
||||
}
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue