Skip to content

Commit c695ebc

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

File tree

1 file changed

+28
-15
lines changed

1 file changed

+28
-15
lines changed

README.md

Lines changed: 28 additions & 15 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)
@@ -49,15 +41,13 @@ All files in the Nix store are readable by any system user, so it is not a suita
4941

5042
## Installation
5143

52-
Choose one of the following methods:
53-
54-
* [niv](#install-via-niv)
55-
* [nix-channel](#install-via-nix-channel)
56-
* [fetchTarball](#install-via-fetchTarball)
57-
* [flakes](#install-via-flakes)
44+
<details>
45+
<summary>
5846

5947
### Install via [niv](https://github.com/nmattia/niv)
6048

49+
</summary>
50+
6151
First add it to niv:
6252

6353
```ShellSession
@@ -84,8 +74,15 @@ To install the `agenix` binary:
8474
}
8575
```
8676

77+
</details>
78+
79+
<details>
80+
<summary>
81+
8782
### Install via nix-channel
8883

84+
</summary>
85+
8986
As root run:
9087

9188
```ShellSession
@@ -113,8 +110,15 @@ To install the `agenix` binary:
113110
}
114111
```
115112

113+
</details>
114+
115+
<details>
116+
<summary>
117+
116118
### Install via fetchTarball
117119

120+
</summary>
121+
118122
#### Install module via fetchTarball
119123

120124
Add the following to your configuration.nix:
@@ -152,8 +156,15 @@ To install the `agenix` binary:
152156
}
153157
```
154158

159+
</details>
160+
161+
<details>
162+
<summary>
163+
155164
### Install via Flakes
156165

166+
</summary>
167+
157168
#### Install module via Flakes
158169

159170
```nix
@@ -192,6 +203,8 @@ but, if you want to (change the system based on your system):
192203
}
193204
```
194205

206+
</details>
207+
195208
## Tutorial
196209

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

0 commit comments

Comments
 (0)