Skip to content

Commit

Permalink
instruct how to restart nix-daemon
Browse files Browse the repository at this point in the history
  • Loading branch information
domenkozar committed Mar 22, 2024
1 parent ff84855 commit 5d547d4
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions devenv/src/command.rs
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,11 @@ impl App {
self.logger
.warn("You're using very old version of Nix, please upgrade.");
}
let restart_command = if cfg!(target_os = "linux") {
"sudo systemctl restart nix-daemon"
} else {
"sudo launchctl kickstart system/org.nixos.nix-daemon"
};
if trusted == Some(0) {
bail!(indoc::formatdoc!(
"You're not a trusted user of the Nix store. You have the following options:
Expand All @@ -302,6 +307,10 @@ impl App {
trusted-users = root {}
Restart nix-daemon with:
$ {restart_command}
2. Add binary caches to /etc/nix/nix.conf yourself:
extra-substituters = {}
Expand Down

0 comments on commit 5d547d4

Please sign in to comment.