From c94c2b85c2741cb4fafb55e35fc696ab8e636965 Mon Sep 17 00:00:00 2001 From: Stefan Kempinger Date: Thu, 16 Apr 2026 22:20:00 +0200 Subject: [PATCH] allow user to kill and start cage-tty1.service --- lnf/configuration.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lnf/configuration.nix b/lnf/configuration.nix index 9cb4868..9de50ca 100644 --- a/lnf/configuration.nix +++ b/lnf/configuration.nix @@ -109,7 +109,11 @@ users = [ "user" ]; commands = [ { - command = "/run/current-system/sw/bin/systemctl restart cage-tty1.service"; + command = "/run/current-system/sw/bin/systemctl start cage-tty1.service"; + options = [ "NOPASSWD" ]; + } + { + command = "/run/current-system/sw/bin/systemctl kill cage-tty1.service"; options = [ "NOPASSWD" ]; } ];