add raspberrypi-utils

This commit is contained in:
chaos 2024-09-04 11:59:59 +01:00
parent b99560d313
commit 5709b8b2f1
No known key found for this signature in database
5 changed files with 30 additions and 3 deletions

View file

@ -1,6 +1,7 @@
{ {
tree, tree,
pkgs, pkgs,
config,
lib, lib,
... ...
}: let }: let
@ -85,6 +86,8 @@ in {
"fbdev" "fbdev"
]; ];
environment.systemPackages = [config.boot.kernelPackages.cpupower];
boot = { boot = {
kernelPackages = pkgs.linuxPackages_rpi5; kernelPackages = pkgs.linuxPackages_rpi5;
supportedFilesystems = mkForce ["vfat"]; supportedFilesystems = mkForce ["vfat"];

View file

@ -49,7 +49,7 @@ in
inherit (pkgs) mk-enc-usb mk-encrypted-drive; inherit (pkgs) mk-enc-usb mk-encrypted-drive;
inherit (pkgs) gotosocial mpd-headless; inherit (pkgs) gotosocial mpd-headless;
inherit (pkgs) kitty-terminfo; inherit (pkgs) kitty-terminfo;
inherit (pkgs) linux_rpi5 raspberrypifw raspberrypiWirelessFirmware; inherit (pkgs) linux_rpi5 raspberrypifw raspberrypiWirelessFirmware raspberrypi-utils;
inherit (inputs.home-manager-unstable.packages."${system}") home-manager; inherit (inputs.home-manager-unstable.packages."${system}") home-manager;
}; };
} }

View file

@ -21,7 +21,7 @@ final: prev: rec {
linuxPackages_rpi5 = final.linuxPackagesFor linux_rpi5; linuxPackages_rpi5 = final.linuxPackagesFor linux_rpi5;
raspberrypifw = prev.raspberrypifw.overrideAttrs (oldAttrs: rec { raspberrypifw = prev.raspberrypifw.overrideAttrs (_oldAttrs: rec {
version = "stable_20240529"; version = "stable_20240529";
src = final.fetchFromGitHub { src = final.fetchFromGitHub {
@ -32,7 +32,7 @@ final: prev: rec {
}; };
}); });
raspberrypiWirelessFirmware = prev.raspberrypiWirelessFirmware.overrideAttrs (oldAttrs: rec { raspberrypiWirelessFirmware = prev.raspberrypiWirelessFirmware.overrideAttrs (_oldAttrs: rec {
version = "unstable-2024-09-04"; version = "unstable-2024-09-04";
srcs = [ srcs = [
@ -53,6 +53,8 @@ final: prev: rec {
]; ];
}); });
raspberrypi-utils = final.callPackage ./raspberrypi-utils.nix {};
mpd-headless = mpd-headless =
(prev.mpdWithFeatures.override { (prev.mpdWithFeatures.override {
ffmpeg = final.ffmpeg_6-headless; ffmpeg = final.ffmpeg_6-headless;

View file

@ -0,0 +1,20 @@
{
stdenv,
fetchFromGitHub,
cmake,
dtc,
}:
stdenv.mkDerivation {
pname = "raspberrypi-utils";
version = "2024-05-23";
src = fetchFromGitHub {
owner = "raspberrypi";
repo = "utils";
rev = "b9c63214c535d7df2b0fa6743b7b3e508363c25a";
hash = "sha256-+z3nSILfI0YZHWKy90SV2Z2fziaAGEC4AKamEpf2+pQ=";
};
nativeBuildInputs = [cmake];
buildInputs = [dtc];
}

View file

@ -1,9 +1,11 @@
{ {
pkgs, pkgs,
config,
lib, lib,
... ...
}: let }: let
inherit (lib.modules) mkForce; inherit (lib.modules) mkForce;
in { in {
boot.kernelPackages = mkForce pkgs.linuxPackages_latest; boot.kernelPackages = mkForce pkgs.linuxPackages_latest;
environment.systemPackages = [config.boot.kernelPackages.cpupower];
} }