add kiosk

This commit is contained in:
Ingolf Wagner 2023-05-12 23:47:19 +02:00
parent cb1cfa902f
commit ca24950932
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B
4 changed files with 36 additions and 6 deletions

View file

@ -38,6 +38,8 @@
./sync-script.nix ./sync-script.nix
./syncthing.nix ./syncthing.nix
./kiosk.nix
]; ];

View file

@ -14,10 +14,19 @@
services.grafana = { services.grafana = {
enable = true; enable = true;
settings.server = { settings = {
domain = "grafana.pepe.private"; server = {
http_port = 2342; domain = "grafana.${config.networking.hostName}.private";
http_addr = "localhost"; http_port = 2342;
http_addr = "localhost";
};
users.default_theme = "light";
"auth.anonymous" = {
enabled = true;
org_name = "Chungus";
org_role = "Viewer";
hide_version = true;
};
}; };
}; };

View file

@ -30,7 +30,7 @@
#port = "/dev/ttyACM0"; #port = "/dev/ttyACM0";
port = "/dev/ttyUSB0"; port = "/dev/ttyUSB0";
# disable LED of CC2531 USB sniffer # disable LED of CC2531 USB sniffer
#disable_led = true; disable_led = true;
}; };
# you own network key, # you own network key,

View file

@ -1 +1,20 @@
# https://dataswamp.org/~solene/2022-10-06-nixos-kiosk.html # 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";
};
};
}