mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-12-07 09:31:02 +01:00
init
This commit is contained in:
commit
3d7a565149
17 changed files with 831 additions and 0 deletions
13
rpi/i2s.nix
Normal file
13
rpi/i2s.nix
Normal 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" ];
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue