blob: 248b0b8d236f4b448fc492f4a1b35c9c11a866ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
# build the sd image for the pi using
# ; nix-build '<nixpkgs/nixos>' -A config.system.build.sdImage -I nixos-config='./default.nix'
{ lib, ... }:
{
imports = [
<nixpkgs/nixos/modules/installer/sd-card/sd-image-raspberrypi.nix>
];
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";
}
|