From 0464f2bcee614dd9d60b0769bc6823a15f3a6234 Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 14 Dec 2023 20:21:30 +0900 Subject: [PATCH] RPI image --- flake.nix | 2 +- lib/default.nix | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/flake.nix b/flake.nix index 5ba55b88..274a665f 100644 --- a/flake.nix +++ b/flake.nix @@ -79,7 +79,7 @@ }; imageConfigurations = { nixos-linode-img = libx.mkMinImage { hostname = "nixos-linode-img"; format = "linode"; }; - nixos-rpi4-img = libx.mkRpiImage { hostname = "nixos-rpi4-img"; format = "sd-aarch64"; }; + nixos-rpi4-img = libx.mkRpiImage { hostname = "nixos-rpi4-img"; }; nixos-iso-console = libx.mkImage { hostname = "nixos-iso-console"; format = "iso"; }; nixos-iso-desktop = libx.mkImage { hostname = "nixos-iso-desktop"; format = "iso"; desktop = "gnome"; }; }; diff --git a/lib/default.nix b/lib/default.nix index fb3d46cf..4f4a3590 100644 --- a/lib/default.nix +++ b/lib/default.nix @@ -77,15 +77,14 @@ ]; }; - # Combines mkHost and mkHome for image building + # Raspberry Pi SD Card image creator mkRpiImage = { hostname , username ? "albert", desktop ? null, - platform ? "x86_64-linux", + platform ? "aarch64-linux", gpu ? null, - theme ? "default", - format + theme ? "default" }: inputs.nixpkgs.lib.nixosSystem { specialArgs = { inherit inputs outputs desktop hostname username stateVersion hmStateVersion gpu platform theme format; }; system = platform;