add raspberrypi-utils
This commit is contained in:
parent
b99560d313
commit
5709b8b2f1
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
tree,
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
|
@ -85,6 +86,8 @@ in {
|
|||
"fbdev"
|
||||
];
|
||||
|
||||
environment.systemPackages = [config.boot.kernelPackages.cpupower];
|
||||
|
||||
boot = {
|
||||
kernelPackages = pkgs.linuxPackages_rpi5;
|
||||
supportedFilesystems = mkForce ["vfat"];
|
||||
|
|
|
@ -49,7 +49,7 @@ in
|
|||
inherit (pkgs) mk-enc-usb mk-encrypted-drive;
|
||||
inherit (pkgs) gotosocial mpd-headless;
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
|
@ -21,7 +21,7 @@ final: prev: rec {
|
|||
|
||||
linuxPackages_rpi5 = final.linuxPackagesFor linux_rpi5;
|
||||
|
||||
raspberrypifw = prev.raspberrypifw.overrideAttrs (oldAttrs: rec {
|
||||
raspberrypifw = prev.raspberrypifw.overrideAttrs (_oldAttrs: rec {
|
||||
version = "stable_20240529";
|
||||
|
||||
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";
|
||||
|
||||
srcs = [
|
||||
|
@ -53,6 +53,8 @@ final: prev: rec {
|
|||
];
|
||||
});
|
||||
|
||||
raspberrypi-utils = final.callPackage ./raspberrypi-utils.nix {};
|
||||
|
||||
mpd-headless =
|
||||
(prev.mpdWithFeatures.override {
|
||||
ffmpeg = final.ffmpeg_6-headless;
|
||||
|
|
20
overlay/raspberrypi-utils.nix
Normal file
20
overlay/raspberrypi-utils.nix
Normal 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];
|
||||
}
|
|
@ -1,9 +1,11 @@
|
|||
{
|
||||
pkgs,
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib.modules) mkForce;
|
||||
in {
|
||||
boot.kernelPackages = mkForce pkgs.linuxPackages_latest;
|
||||
environment.systemPackages = [config.boot.kernelPackages.cpupower];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue