add example image to packages and CI

This commit is contained in:
Travis Staton 2024-07-27 10:11:02 -04:00
parent 953aca9361
commit 0dfdbce026
2 changed files with 44 additions and 0 deletions

37
example/default.nix Normal file
View file

@ -0,0 +1,37 @@
{ pkgs, lib, ... }: {
time.timeZone = "America/New_York";
users.users.root.initialPassword = "root";
networking = {
hostName = "example";
useDHCP = false;
interfaces = {
wlan0.useDHCP = true;
eth0.useDHCP = true;
};
};
raspberry-pi-nix.board = "bcm2711";
hardware = {
raspberry-pi = {
config = {
all = {
base-dt-params = {
BOOT_UART = {
value = 1;
enable = true;
};
uart_2ndstage = {
value = 1;
enable = true;
};
};
dt-overlays = {
disable-bt = {
enable = true;
params = { };
};
};
};
};
};
};
}