Thiago Kenji Okada
3ccddfc48d
lib: remove top-level with lib
2021-10-31 08:50:53 +01:00
Robert Helgesson
a965b097b1
lib.gvariant: fix rendering of empty non-string arrays
...
Before, empty arrays would always be rendered as an empty string
array.
2021-08-13 08:52:13 +02:00
Robert Helgesson
a3d691c053
lib.gvariant: add a few more functions to test case
2021-08-13 00:45:10 +02:00
Robert Helgesson
604561ba9a
lib.gvariant: escape newlines in strings
...
See #2096
2021-08-11 23:30:24 +02:00
Robert Helgesson
e42e147b58
Remove some usage of config.lib.dag
...
The `lib.hm.dag` attribute set should always be preferred.
2021-05-09 12:13:31 +02:00
Symphorien Gibol
e1fbb74b41
lib.gvariant: escape backslashes in strings
...
PR #1433
2020-08-12 22:53:28 +02:00
Robert Helgesson
83301ca787
lib: support gvariant maybe type
...
Fixes #1397
2020-07-24 16:45:13 +02:00
Robert Helgesson
8ad4bd6c1b
types: improve dagOf and listOrDagOf
...
In particular, improve the behavior of these types if the element type
is a submodule.
2020-04-13 22:01:20 +02:00
Robert Helgesson
ac9e44a831
lib: add GVariant datatype and functions
2020-03-21 00:28:50 +01:00
Robert Helgesson
45abf3d38a
Apply nixfmt
on many files
2020-02-02 01:07:28 +01:00
Robert Helgesson
1397570eea
tests: use lib.hm.types
instead of explicit import
2020-01-26 11:28:34 +01:00
Robert Helgesson
7f87329fca
home-environment: use DAG type in activation
option
2020-01-16 00:16:35 +01:00
Robert Helgesson
6c127efb2d
lib: add type generators dagOf
and listOrDagOf
...
Given an inner type, the former function generates a type that expect
DAG option values. The latter function is only present to temporarily
allow the `programs.ssh.matchBlocks` to keep accepting list values.
2020-01-16 00:16:09 +01:00