1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-23 10:19:48 +01:00

xresources: allow floating point values

This commit is contained in:
musjj 2024-12-22 19:55:36 +07:00 committed by Robert Helgesson
parent cb27edb522
commit 1f74238a4c
No known key found for this signature in database
GPG key ID: 96E745BD17AA17ED
3 changed files with 3 additions and 1 deletions

View file

@ -32,7 +32,7 @@ in {
xresources.properties = mkOption {
type = with types;
let
prim = either bool (either int str);
prim = oneOf [ bool int float str ];
entry = either prim (listOf prim);
in nullOr (attrsOf entry);
default = null;

View file

@ -1,5 +1,6 @@
Test*boolean1: true
Test*boolean2: false
Test*float: 12.300000
Test*int: 10
Test*list: list-str, true, false, 10
Test*string: test-string

View file

@ -7,6 +7,7 @@
"Test*boolean1" = true;
"Test*boolean2" = false;
"Test*int" = 10;
"Test*float" = 12.3;
"Test*list" = [ "list-str" true false 10 ];
};
};