This commit is contained in:
Travis Staton 2022-01-19 21:35:25 -05:00
commit 3d7a565149
17 changed files with 831 additions and 0 deletions

13
rpi/i2s.nix Normal file
View file

@ -0,0 +1,13 @@
{ config, lib, pkgs, ... }:
let cfg = config.hardware.raspberry-pi.i2s;
in {
options.hardware.raspberry-pi.i2s = {
enable = lib.mkEnableOption "configuration for i2s";
};
config = lib.mkIf cfg.enable {
hardware = {
raspberry-pi.deviceTree.base-dtb-params = [ "i2s=on" ];
};
};
}