diff --git a/src/package_manager.rs b/src/package_manager.rs index 4d0dbb3..024ae9f 100644 --- a/src/package_manager.rs +++ b/src/package_manager.rs @@ -328,7 +328,7 @@ impl Component for PackageManagerModel { commands.push("sudo apt-get install -y nix-bin nix-setup-systemd"); commands.push("sudo groupadd -f nix-users"); commands.push("sudo usermod -a -G nix-users $USER"); - commands.push("sudo systemctl enable nix-daemon.service || true"); + commands.push("{ sudo systemctl enable nix-daemon.service || :; }"); commands.push("nix-channel --add https://nixos.org/channels/nixpkgs-unstable nixpkgs"); commands.push("nix-channel --update"); }