summaryrefslogtreecommitdiff
path: root/hosts/kioku/hardware-configuration.nix
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/kioku/hardware-configuration.nix')
-rw-r--r--hosts/kioku/hardware-configuration.nix60
1 files changed, 37 insertions, 23 deletions
diff --git a/hosts/kioku/hardware-configuration.nix b/hosts/kioku/hardware-configuration.nix
index 796cee0..47498ff 100644
--- a/hosts/kioku/hardware-configuration.nix
+++ b/hosts/kioku/hardware-configuration.nix
@@ -1,29 +1,43 @@
+{ lib, ... }:
{
raspberry-pi-nix.board = "bcm2711";
- hardware.raspberry-pi.config.all = {
- base-dt-params = {
- BOOT_UART = {
- value = 1;
- enable = true;
- };
+ fileSystems."/mnt/usb_share" = {
+ device = "/piusb.bin";
+ fsType = "exfat";
- uart_2ndstage = {
- value = 1;
- enable = true;
- };
- };
-
- dt-overlays = {
- disable-bt = {
- enable = true;
- params = { };
- };
-
- dwc2 = {
- enable = true;
- params = { };
- };
- };
+ options = [
+ "loop"
+ "noatime"
+ "nofail"
+ "rw"
+ "umask=000"
+ "users"
+ ];
};
+
+ hardware.raspberry-pi.config.all.dt-overlays =
+ (
+ overlays:
+ lib.attrsets.mapAttrs
+ (_name: _value: {
+ enable = true;
+ params = { };
+ })
+ (
+ lib.listToAttrs (
+ map (overlay: {
+ name = overlay;
+ value = { };
+ }) overlays
+ )
+ )
+ )
+ [
+ "disable-bt"
+ "dwc2"
+ "usb_power"
+ "ramlog"
+ "hdmi_blanking"
+ ];
}