aboutsummaryrefslogtreecommitdiff
path: root/hosts/g1-bigscreen.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/g1-bigscreen.nix')
-rw-r--r--hosts/g1-bigscreen.nix71
1 files changed, 71 insertions, 0 deletions
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;
+ };
+}