mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-11-09 12:06:02 +01:00
13 lines
306 B
Nix
13 lines
306 B
Nix
{ 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" ];
|
|
};
|
|
};
|
|
}
|