add enable option to config

This commit is contained in:
Travis Staton 2023-03-04 14:46:48 -05:00
parent 739c404f11
commit 9f89c2dcf5
3 changed files with 109 additions and 23 deletions

View file

@ -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;
};
};