use remote-sudo for local rebuilds

This commit is contained in:
xunuwu 2025-05-28 17:29:45 +02:00
parent f804cb2cf1
commit 9417b068a9
Signed by: xun
SSH key fingerprint: SHA256:Uot/1WoAjWAeqLOHA5vYy4phhVydsH7jCPmBjaPZfgI

View file

@ -1,8 +1,9 @@
hostname := `hostname` hostname := `hostname`
local OPERATION *FLAGS: local OPERATION *FLAGS:
sudo nixos-rebuild \ nixos-rebuild \
--flake .#{{hostname}} \ --flake .#{{hostname}} \
--use-remote-sudo \
{{FLAGS}} \ {{FLAGS}} \
{{OPERATION}} {{OPERATION}}