From d182f2bea05f7b54c2d4cd24630df51b56af560d Mon Sep 17 00:00:00 2001 From: Emile Date: Sun, 9 Jun 2024 13:53:47 +0200 Subject: minimal config for building a pi1 armv6 image --- nix/hosts/pi1/default.nix | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 nix/hosts/pi1/default.nix (limited to 'nix/hosts/pi1/default.nix') diff --git a/nix/hosts/pi1/default.nix b/nix/hosts/pi1/default.nix new file mode 100644 index 0000000..248b0b8 --- /dev/null +++ b/nix/hosts/pi1/default.nix @@ -0,0 +1,32 @@ +# build the sd image for the pi using +# ; nix-build '' -A config.system.build.sdImage -I nixos-config='./default.nix' + +{ lib, ... }: + +{ + imports = [ + + ]; + + users.users = { + root = { + isNormalUser = true; + home = "/root"; + hashedPassword = "$y$j9T$gs6PF0Ts247/grRimfCP3.$eKq2l72lLeOrVkCSn.jf1niItuBowtf.QYaLbIHX/C0"; + }; + }; + + nixpkgs = { + crossSystem = lib.systems.examples.raspberryPi; + localSystem = { system = "x86_64-linux"; }; + overlays = [ + (final: super: { + # Due to https://github.com/NixOS/nixpkgs/issues/154163#issuecomment-1350599022 + makeModulesClosure = x: + super.makeModulesClosure (x // { allowMissing = true; }); + }) + ]; + }; + system.stateVersion = "24.05"; +} + -- cgit 1.4.1