mirror of
https://github.com/ryantm/agenix.git
synced 2024-11-14 14:30:47 +03:00
29 lines
533 B
Markdown
29 lines
533 B
Markdown
|
# Install via nix-channel {#install-via-nix-channel}
|
||
|
|
||
|
As root run:
|
||
|
|
||
|
```ShellSession
|
||
|
$ sudo nix-channel --add https://github.com/ryantm/agenix/archive/main.tar.gz agenix
|
||
|
$ sudo nix-channel --update
|
||
|
```
|
||
|
|
||
|
## Install module via nix-channel
|
||
|
|
||
|
Then add the following to your `configuration.nix` in the `imports` list:
|
||
|
|
||
|
```nix
|
||
|
{
|
||
|
imports = [ <agenix/modules/age.nix> ];
|
||
|
}
|
||
|
```
|
||
|
|
||
|
## Install CLI via nix-channel
|
||
|
|
||
|
To install the `agenix` binary:
|
||
|
|
||
|
```nix
|
||
|
{
|
||
|
environment.systemPackages = [ (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) ];
|
||
|
}
|
||
|
```
|