mirror of
https://github.com/NixOS/nixos-hardware.git
synced 2026-12-04 23:13:29 +01:00
raspberry-pi/common: avoid with lib.types; in settings definition
This commit is contained in:
1 parent
2e790b0a6b
commit
5fbc0ff5d2
1 file changed
+9
-1
@@ -82,8 +82,16 @@ in
|
|||||||
options.hardware.raspberry-pi.configtxt = {
|
options.hardware.raspberry-pi.configtxt = {
|
||||||
settings = lib.mkOption {
|
settings = lib.mkOption {
|
||||||
type =
|
type =
|
||||||
with lib.types;
|
|
||||||
let
|
let
|
||||||
|
inherit (lib.types)
|
||||||
|
attrsOf
|
||||||
|
bool
|
||||||
|
int
|
||||||
|
listOf
|
||||||
|
nullOr
|
||||||
|
oneOf
|
||||||
|
str
|
||||||
|
;
|
||||||
atom = nullOr (oneOf [
|
atom = nullOr (oneOf [
|
||||||
str
|
str
|
||||||
int
|
int
|
||||||
|
|||||||
Reference in new issue
Block a user