initial commit
This commit is contained in:
commit
2762313824
19 changed files with 11541 additions and 0 deletions
machines/raspberry-pi-3
11
machines/raspberry-pi-3/hardware-configuration.nix
Normal file
11
machines/raspberry-pi-3/hardware-configuration.nix
Normal file
|
@ -0,0 +1,11 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
|
||||
{
|
||||
boot.kernelParams = [
|
||||
"console=ttyS1,115200n8"
|
||||
];
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
libraspberrypi
|
||||
];
|
||||
}
|
12
machines/raspberry-pi-3/sd-image.nix
Normal file
12
machines/raspberry-pi-3/sd-image.nix
Normal file
|
@ -0,0 +1,12 @@
|
|||
{ config, pkgs, lib, ... }:
|
||||
{
|
||||
# # cross compile
|
||||
# nixpkgs.crossSystem = lib.systems.elaborate lib.systems.examples.aarch64-multiplatform;
|
||||
|
||||
# # emulate
|
||||
nixpkgs.system = "aarch64-linux";
|
||||
|
||||
imports = [
|
||||
<nixpkgs/nixos/modules/installer/sd-card/sd-image-aarch64.nix>
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue