nixos-config/legacy/kiosk.nix

23 lines
577 B
Nix
Raw Normal View History

2023-05-12 23:47:19 +02:00
# https://dataswamp.org/~solene/2022-10-06-nixos-kiosk.html
{ pkgs, config, ... }:
{
services.cage = {
enable = true;
user = "kiosk";
program = "${pkgs.firefox}/bin/firefox -kiosk -private-window http://grafana.chungus.private/d/0d1dfFU4k/default-dashboard?orgId=1&kiosk";
};
users = {
users.kiosk = {
isNormalUser = true;
name = "kiosk";
group = config.users.groups.kiosk.name;
};
groups.kiosk = {
name = "kiosk";
};
};
2023-05-13 00:29:13 +02:00
# make sure cage ist starting instead of getty
systemd.defaultUnit = "graphical.target";
2023-05-14 02:59:03 +02:00
2023-05-12 23:47:19 +02:00
}