Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion machines/amc-peripheral/configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -1107,7 +1107,7 @@ in {
'';
};

# ── Sudoers: opencode can deploy via nixos-rebuild ─────────────────
# ── Sudoers: opencode can deploy via nixos-rebuild and restart services ──
security.sudo.extraRules = [
{
users = ["opencode"];
Expand All @@ -1116,6 +1116,10 @@ in {
command = "/run/current-system/sw/bin/nixos-rebuild switch *";
options = ["NOPASSWD"];
}
{
command = "/run/current-system/sw/bin/systemctl restart amc-radio amc-bot kimaki";
options = ["NOPASSWD"];
}
];
}
];
Expand Down