task | enable kiosk mode for pi1 and display

This commit is contained in:
Don Harper 2025-01-24 23:11:22 -06:00
parent 05939c4f95
commit c87d476243
4 changed files with 20 additions and 1 deletions

View file

@ -3,6 +3,7 @@
inputs.nixos-hardware.nixosModules.raspberry-pi-4
./hardware-configuration.nix
../../server
./kiosk.nix
];
networking.hostName = "display";
}

9
hosts/display/kiosk.nix Normal file
View file

@ -0,0 +1,9 @@
{ inputs, outputs, lib, config, pkgs, ... }: {
environment.systemPackages = with pkgs; [ cog ];
services.cage = {
enable = true;
user = "don";
program = "${pkgs.cog}/bin/cog http://homeassistant.home.duckland.org:8123/dashboard-pi/0";
};
}

View file

@ -1,4 +1,4 @@
{ inputs, outputs, lib, config, pkgs, ... }: {
imports = [ ./hardware-configuration.nix ../server ];
imports = [ ./hardware-configuration.nix ../server ./kiosk.nix ];
networking.hostName = "pi1";
}

9
hosts/pi1/kiosk.nix Normal file
View file

@ -0,0 +1,9 @@
{ inputs, outputs, lib, config, pkgs, ... }: {
environment.systemPackages = with pkgs; [ cog ];
services.cage = {
enable = true;
user = "don";
program = "${pkgs.cog}/bin/cog http://homeassistant.home.duckland.org:8123/dashboard-pi/0";
};
}