diff --git a/modules/misc/dconf.nix b/modules/misc/dconf.nix index f1ce38d3..8aa8e8d8 100644 --- a/modules/misc/dconf.nix +++ b/modules/misc/dconf.nix @@ -59,6 +59,17 @@ in { ''; description = '' Settings to write to the dconf configuration system. + + Note that the database is strongly-typed so you need to use the same types + as described in the GSettings schema. For example, if an option is of type + uint32 (u), you need to wrap the number + using the lib.hm.gvariant.mkUint32 constructor. + Otherwise, since Nix integers are implicitly coerced to int32 + (i), it would get stored in the database as such, and GSettings + might be confused when loading the setting. + + You might want to use dconf2nix + to convert dconf database dumps into compatible Nix expression. ''; }; };