diff options
author | tcmal <me@aria.rip> | 2024-08-23 01:03:50 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-08-23 01:05:10 +0100 |
commit | 5028503d6d2a21d9e4cb3100a2f9b2795cb5d4bd (patch) | |
tree | 94f38bbdfabc7b2549b97541b4d9880b5eb332e7 /hosts/g1-bigscreen.nix |
Diffstat (limited to 'hosts/g1-bigscreen.nix')
-rw-r--r-- | hosts/g1-bigscreen.nix | 71 |
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; + }; +} |