mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(cage): open spotify
This commit is contained in:
@@ -51,13 +51,13 @@
|
||||
user = config.users.extraUsers.kiosk.name;
|
||||
extraArguments = [ "-s" ]; # allow vt switching
|
||||
program =
|
||||
let startUrl = "http://localhost:${toString config.services.mpd-fm.webPort}";
|
||||
let startUrls = [ "https://open.spotify.com" "http://localhost:${toString config.services.mpd-fm.webPort}" ];
|
||||
in pkgs.writers.writeDash "kiosk-browser" ''
|
||||
while true; do
|
||||
${pkgs.chromium}/bin/chromium \
|
||||
--no-first-run --no-message-box --noerrdialogs \
|
||||
--default-browser --no-default-browser-check \
|
||||
--start-maximized ${startUrl}
|
||||
--start-maximized ${lib.escapeShellArgs startUrls}
|
||||
sleep 0.5
|
||||
done
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user