From 3540ba374d98e621710553bd1ccaec9e52e76069 Mon Sep 17 00:00:00 2001 From: electria Date: Fri, 1 May 2026 14:19:17 -0700 Subject: [PATCH] fix(plasma): security mistake without `exec`, if you're able to log out when the screen is locked, you're also able to go right into a tty. oops. note that this is untested since I no longer use plasma --- defaults/plasma.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/defaults/plasma.nix b/defaults/plasma.nix index 4609463..4a042e9 100644 --- a/defaults/plasma.nix +++ b/defaults/plasma.nix @@ -43,7 +43,7 @@ in environment.interactiveShellInit = lib.mkIf cfg.startOnFirstTTY - /* sh */ "test $(tty) = /dev/tty1 && startplasma-wayland"; + /* sh */ "test $(tty) = /dev/tty1 && exec startplasma-wayland"; services.displayManager.sddm.enable = lib.mkIf cfg.startOnFirstTTY false;