From 0c8aa6ff1aa7cd30ae5b4095e67283912fbd8ad5 Mon Sep 17 00:00:00 2001 From: Adithya Nair Date: Tue, 25 Jun 2024 22:38:34 +0530 Subject: [PATCH] update rico config --- hosts/rico1/hardware/default.nix | 6 ++++++ hosts/rico1/hardware/kernel.nix | 1 + hosts/rico1/programs/default.nix | 2 ++ 3 files changed, 9 insertions(+) diff --git a/hosts/rico1/hardware/default.nix b/hosts/rico1/hardware/default.nix index 540cd3d..a09ca96 100644 --- a/hosts/rico1/hardware/default.nix +++ b/hosts/rico1/hardware/default.nix @@ -2,8 +2,14 @@ _: { imports = [ ./filesystem.nix ./kernel.nix ]; hardware = { + deviceTree = { + enable = true; + filter = "*rpi-4-*.dtb"; + }; raspberry-pi."4" = { + apply-overlays-dtmerge.enable = true; poe-plus-hat.enable = true; + xhci.enable = true; }; }; } diff --git a/hosts/rico1/hardware/kernel.nix b/hosts/rico1/hardware/kernel.nix index 6247463..073b57f 100644 --- a/hosts/rico1/hardware/kernel.nix +++ b/hosts/rico1/hardware/kernel.nix @@ -1,5 +1,6 @@ { lib , ... }: { + boot.supportedFilesystems = lib.mkForce [ "vfat" "btrfs" "ext4" "tmpfs" ]; powerManagement.cpuFreqGovernor = lib.mkDefault "performance"; } diff --git a/hosts/rico1/programs/default.nix b/hosts/rico1/programs/default.nix index 4c3e07f..00dca37 100644 --- a/hosts/rico1/programs/default.nix +++ b/hosts/rico1/programs/default.nix @@ -10,6 +10,8 @@ environment.systemPackages = with pkgs; [ sops age + libraspberrypi + raspberrypi-eeprom ]; }