From 5028503d6d2a21d9e4cb3100a2f9b2795cb5d4bd Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 23 Aug 2024 01:03:50 +0100 Subject: basic kiosk module --- hosts/g1-bigscreen.nix | 71 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100644 hosts/g1-bigscreen.nix (limited to 'hosts') diff --git a/hosts/g1-bigscreen.nix b/hosts/g1-bigscreen.nix new file mode 100644 index 0000000..eaca60d --- /dev/null +++ b/hosts/g1-bigscreen.nix @@ -0,0 +1,71 @@ +{ modulesPath, lib, ... }: +{ + nixpkgs.system = "x86_64-linux"; + + imports = [ + (modulesPath + "/profiles/qemu-guest.nix") + ../profiles/common.nix + ]; + + services.kiosk = { + enable = true; + urls = [ + "http://carbon.hacklab:8081" + "http://carbon.hacklab:8448" + ]; + }; + + disko.devices = { + disk.disk1 = { + device = lib.mkDefault "/dev/sda"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + boot = { + name = "boot"; + size = "1M"; + type = "EF02"; + }; + esp = { + name = "ESP"; + size = "500M"; + type = "EF00"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + }; + }; + root = { + name = "root"; + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + mountOptions = [ "defaults" ]; + }; + }; + }; + }; + }; + }; + + boot.initrd.availableKernelModules = [ + "ata_piix" + "uhci_hcd" + "virtio_pci" + "virtio_scsi" + "sd_mod" + "sr_mod" + ]; + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + + networking = { + hostName = "g1-bigscreen"; + domain = lib.our.domains.local; + useDHCP = true; + }; +} -- cgit v1.2.3