Skip to content

Commit abd1778

Browse files
authored
Update README with trusted-users configuration
Added instructions for configuring trusted users and restarting the Nix daemon on macOS and Ubuntu.
1 parent 52b445e commit abd1778

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

README.md

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,26 @@ EOF
2626
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
2727
```
2828

29+
### add `trusted-users`
30+
31+
edit `/etc/nix/nix.custom.conf`:
32+
```conf
33+
trusted-users = charles
34+
```
35+
36+
restart daemon:
37+
38+
on macOS:
39+
```sh
40+
sudo launchctl unload /Library/LaunchDaemons/systems.determinate.nix-daemon.plist
41+
sudo launchctl load /Library/LaunchDaemons/systems.determinate.nix-daemon.plist
42+
```
43+
44+
on Ubuntu:
45+
```sh
46+
sudo systemctl restart nix-daemon
47+
```
48+
2949
and open another shell.
3050

3151
## Check Nix XDG Location
@@ -60,7 +80,6 @@ fi
6080
```sh
6181
nix run home-manager/master -- init --switch
6282
exit
63-
ssh xxx
6483
# nix-channel --add https://nixos.org/channels/nixpkgs-unstable unstable
6584
# nix-channel --update
6685
# nix-env -iA unstable.git
@@ -71,6 +90,7 @@ cd ~/.config/home-manager && nix build
7190
rm ~/.config/nix/nix.conf
7291
~/.config/home-manager/result/bin/home-manager switch --flake ~/.config/home-manager --impure
7392
home-manager switch --impure # this will prevent current generations get clean up w/ gc`
93+
determinate-nixd version
7494
```
7595

7696
ref: https://github.com/ryantm/home-manager-template/blob/master/README.md
@@ -79,10 +99,10 @@ ref: https://github.com/the-argus/spicetify-nix/blob/master/home-manager-install
7999

80100
## Upgrade Nix
81101

82-
- On nacOS:
102+
- On macOS:
83103

84104
```sh
85-
sudo nix upgrade-nix
105+
sudo determinate-nixd upgrade
86106
```
87107

88108
- On Ubuntu:

0 commit comments

Comments
 (0)