mirror of
https://github.com/nix-community/raspberry-pi-nix.git
synced 2025-12-17 22:41:09 +01:00
add enable option to config
This commit is contained in:
parent
739c404f11
commit
9f89c2dcf5
3 changed files with 109 additions and 23 deletions
|
|
@ -7,7 +7,12 @@ in {
|
|||
};
|
||||
config = lib.mkIf cfg.enable {
|
||||
hardware = {
|
||||
raspberry-pi.config.all.base-dt-params = { i2c = "on"; };
|
||||
raspberry-pi.config.all.base-dt-params = {
|
||||
i2c = {
|
||||
enable = true;
|
||||
value = "on";
|
||||
};
|
||||
};
|
||||
i2c.enable = true;
|
||||
};
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue