You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/cookbook/publish/signing-keys.md
+19-22Lines changed: 19 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,19 +41,30 @@ This amounts to adding the public key to the list of `extra-trusted-public-keys`
41
41
42
42
### Add a new trusted key
43
43
44
-
#### Nix installed via Flox
44
+
#### Nix installed via Flox, or standalone Nix installation
45
45
46
-
If you installed Nix as part of your Flox installation, you need to create and/or edit your `$XDG_CONFIG_HOME/nix/nix.conf` file.
47
-
On most systems this will be `~/.config/nix/nix.conf`.
48
-
Add the following line, where `<key contents>` is the contents of the signing public key file:
46
+
If you installed Nix as part of your Flox installation, you need to edit your `/etc/nix/nix.conf` to add a new entry to the `extra-trusted-public-keys` option.
47
+
If `/etc/nix/nix.conf` doesn't exist, create it.
48
+
If the `extra-trusted-public-keys` option doesn't exist, create it.
49
+
Add the following line, where `<key contents>` is the contents of the signing public key file and `<existing keys>` is any keys that were already populated for this option (if it existed):
In order for the newly trusted key to take effect, the Nix daemon needs to be restarted.
56
+
On Linux the daemon is managed via `systemd`, so you can restart it with the following command:
55
57
56
-
If you already have Nix installed, your instructions will look largely the same with the exception being that you can put this line in your `/etc/nix/nix.conf` instead if you so choose.
58
+
```bash
59
+
$ sudo systemctl restart nix-daemon
60
+
```
61
+
62
+
On macOS the Nix daemon is managed via `launchd`, so you can restart it with the following command (note that you have to run the command twice, this is not a typo):
In order for the newly trusted key to take effect, the Nix daemon needs to be restarted.
72
-
On Linux the daemon is managed via `systemd`, so you can restart it with the following command:
73
-
74
-
```bash
75
-
$ sudo systemctl restart nix-daemon
76
-
```
77
-
78
-
On macOS the Nix daemon is managed via `launchd`, so you can restart it with the following command (note that you have to run the command twice, this is not a typo):
0 commit comments