htop: use attrsOf instead of attrs as settings type

This commit is contained in:
Luflosi 2024-06-21 17:30:18 +02:00 committed by Robert Helgesson
parent c7cfdb3864
commit 82378b3f7f
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED

View file

@ -113,7 +113,8 @@ in {
enable = mkEnableOption "htop";
settings = mkOption {
type = types.attrs;
type = with types;
attrsOf (oneOf [ bool int str (listOf (oneOf [ int str ])) ]);
default = { };
example = literalExpression ''
{