Skip to content

Commit 4effb0e

Browse files
committed
doc: collapse installation sections
as suggested in #133
1 parent 6d3a415 commit 4effb0e

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

README.md

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,10 @@
77
* [Problem and solution](#problem-and-solution)
88
* [Features](#features)
99
* [Installation](#installation)
10-
* [niv](#install-via-niv) (Current recommendation)
11-
* [module](#install-module-via-niv)
12-
* [CLI](#install-cli-via-niv)
10+
* [niv](#install-via-niv)
1311
* [nix-channel](#install-via-nix-channel)
14-
* [module](#install-module-via-nix-channel)
15-
* [CLI](#install-cli-via-nix-channel)
1612
* [fetchTarball](#install-via-fetchtarball)
17-
* [module](#install-module-via-fetchtarball)
18-
* [CLI](#install-cli-via-fetchTarball)
1913
* [flakes](#install-via-flakes)
20-
* [module](#install-module-via-flakes)
21-
* [CLI](#install-cli-via-flakes)
2214
* [Tutorial](#tutorial)
2315
* [Reference](#reference)
2416
* [`age` module reference](#age-module-reference)
@@ -56,8 +48,13 @@ Choose one of the following methods:
5648
* [fetchTarball](#install-via-fetchTarball)
5749
* [flakes](#install-via-flakes)
5850

51+
<details>
52+
<summary>
53+
5954
### Install via [niv](https://github.com/nmattia/niv)
6055

56+
</summary>
57+
6158
First add it to niv:
6259

6360
```ShellSession
@@ -84,8 +81,15 @@ To install the `agenix` binary:
8481
}
8582
```
8683

84+
</details>
85+
86+
<details>
87+
<summary>
88+
8789
### Install via nix-channel
8890

91+
</summary>
92+
8993
As root run:
9094

9195
```ShellSession
@@ -113,8 +117,15 @@ To install the `agenix` binary:
113117
}
114118
```
115119

120+
</details>
121+
122+
<details>
123+
<summary>
124+
116125
### Install via fetchTarball
117126

127+
</summary>
128+
118129
#### Install module via fetchTarball
119130

120131
Add the following to your configuration.nix:
@@ -152,8 +163,15 @@ To install the `agenix` binary:
152163
}
153164
```
154165

166+
</summary>
167+
168+
<details>
169+
<summary>
170+
155171
### Install via Flakes
156172

173+
</summary>
174+
157175
#### Install module via Flakes
158176

159177
```nix
@@ -192,6 +210,8 @@ but, if you want to (change the system based on your system):
192210
}
193211
```
194212

213+
</details>
214+
195215
## Tutorial
196216

197217
1. The system you want to deploy secrets to should already exist and

0 commit comments

Comments
 (0)