add kiosk
This commit is contained in:
parent
cb1cfa902f
commit
ca24950932
4 changed files with 36 additions and 6 deletions
|
@ -38,6 +38,8 @@
|
||||||
./sync-script.nix
|
./sync-script.nix
|
||||||
./syncthing.nix
|
./syncthing.nix
|
||||||
|
|
||||||
|
./kiosk.nix
|
||||||
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue