add lockscreen support

This commit is contained in:
Henry Hiles 2026-11-17 20:11:17 -05:00
commit 79d36e01be
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -2,6 +2,7 @@
lib,
quickshell,
writeShellApplication,
glib,
networkmanager,
modemmanager,
nmgui,
@ -9,6 +10,8 @@
coreutils,
gawk,
gnugrep,
# Blurred behind the lockscreen
wallpaper ? null,
}:
let
config = lib.fileset.toSource {
@ -27,9 +30,11 @@ writeShellApplication {
coreutils
gawk
gnugrep
glib # gdbus, for logind's lock signal
];
text = ''
${lib.optionalString (wallpaper != null) "export QUADSHELL_WALLPAPER=${wallpaper}"}
exec ${lib.getExe quickshell} --path ${config} "$@"
'';
}