mirror of
https://github.com/nix-community/home-manager
synced 2024-11-23 03:29:45 +01:00
parent
d1f4d1514d
commit
e1fbb74b41
2 changed files with 3 additions and 1 deletions
|
@ -123,7 +123,7 @@ in rec {
|
|||
|
||||
mkString = v:
|
||||
mkPrimitive type.string v // {
|
||||
__toString = self: "'${escape [ "'" ] self.value}'";
|
||||
__toString = self: "'${escape [ "'" "\\" ] self.value}'";
|
||||
};
|
||||
|
||||
mkObjectpath = v:
|
||||
|
|
|
@ -26,6 +26,7 @@ in {
|
|||
|
||||
{ string = "foo"; }
|
||||
{ string = "foo"; }
|
||||
{ escapedString = "' \\"; }
|
||||
|
||||
{ tuple = mkTuple [ 1 [ "foo" ] ]; }
|
||||
|
||||
|
@ -46,6 +47,7 @@ in {
|
|||
bool = true
|
||||
emptyArray1 = @as []
|
||||
emptyArray2 = @as []
|
||||
escapedString = '\' \\'
|
||||
float = 3.140000
|
||||
int = 42
|
||||
list = @as ['one','two']
|
||||
|
|
Loading…
Reference in a new issue