1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 00:39:45 +01:00

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"; enable = mkEnableOption "htop";
settings = mkOption { settings = mkOption {
type = types.attrs; type = with types;
attrsOf (oneOf [ bool int str (listOf (oneOf [ int str ])) ]);
default = { }; default = { };
example = literalExpression '' example = literalExpression ''
{ {