From 30eea41ac99f9e19c7fe73667d3266abf2b91acc Mon Sep 17 00:00:00 2001 From: Sergey Gulin Date: Thu, 9 Mar 2023 11:40:34 +0300 Subject: [PATCH] [Chore] Add sudo to restart call Problem: We need sudo to restart service. Solution: Add sudo to systemctl call. --- flake.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 4b3ce13..4708b89 100644 --- a/flake.nix +++ b/flake.nix @@ -35,7 +35,7 @@ profiles = { tzbot.path = deploy-rs.lib.x86_64-linux.activate.custom self.packages.x86_64-linux.tzbot - "/run/current-system/sw/bin/systemctl restart tzbot"; + "sudo /run/current-system/sw/bin/systemctl restart tzbot"; }; }; };