diff --git a/.github/workflows/build-machines-and-homes.yml b/.github/workflows/build-machines-and-homes.yml index 768a3c5..f34d785 100644 --- a/.github/workflows/build-machines-and-homes.yml +++ b/.github/workflows/build-machines-and-homes.yml @@ -14,7 +14,6 @@ jobs: - pancake os: - ubuntu-latest - - ubuntu-24.04-arm runs-on: ${{ matrix.os }} continue-on-error: true steps: diff --git a/flake.nix b/flake.nix index 0bd9cec..6fce982 100644 --- a/flake.nix +++ b/flake.nix @@ -210,6 +210,7 @@ { nixpkgs.pkgs = pkgsFor "aarch64-linux"; } + disko.nixosModules.disko inputs.nixos-hardware.nixosModules.raspberry-pi-3 ./hosts/pancake ./modules diff --git a/hosts/common.nix b/hosts/common.nix index 5303739..2e8b31a 100644 --- a/hosts/common.nix +++ b/hosts/common.nix @@ -9,6 +9,8 @@ "root" "@wheel" ]; + trusted-public-keys = [ "central:uWhjva6m6dhC2hqNisjn2hXGvdGBs19vPkA1dPEuwFg=" ]; + substituters = [ "https://cache.cything.io/central" ]; }; channel.enable = false; optimise = { diff --git a/hosts/pancake/default.nix b/hosts/pancake/default.nix index 628d171..ae3145e 100644 --- a/hosts/pancake/default.nix +++ b/hosts/pancake/default.nix @@ -8,8 +8,8 @@ (modulesPath + "/installer/scan/not-detected.nix") (modulesPath + "/profiles/qemu-guest.nix") ../common.nix + ./disk-config.nix ./hardware-configuration.nix - ../zsh.nix ]; services.openssh = { @@ -31,6 +31,7 @@ # network stuff networking.hostName = "pancake"; + networking.networkmanager.enable = true; networking.firewall = { enable = true; allowedTCPPorts = [ diff --git a/hosts/pancake/disk-config.nix b/hosts/pancake/disk-config.nix new file mode 100644 index 0000000..1d3855b --- /dev/null +++ b/hosts/pancake/disk-config.nix @@ -0,0 +1,33 @@ +{ + disko.devices = { + disk = { + main = { + device = "/dev/mmcblk0"; + type = "disk"; + content = { + type = "gpt"; + partitions = { + ESP = { + type = "EF00"; + size = "500M"; + content = { + type = "filesystem"; + format = "vfat"; + mountpoint = "/boot"; + mountOptions = [ "umask=0077" ]; + }; + }; + root = { + size = "100%"; + content = { + type = "filesystem"; + format = "ext4"; + mountpoint = "/"; + }; + }; + }; + }; + }; + }; + }; +}