systemd: fix unit examples

Closes #823
This commit is contained in:
Robert Helgesson 2019-08-29 19:12:39 +02:00
parent 7c76ae1814
commit 875eea1330
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89

View file

@ -81,15 +81,17 @@ let
unitExample = type: literalExample '' unitExample = type: literalExample ''
{ {
Unit = { ${toLower type}-name = {
Description = "Example description"; Unit = {
Documentation = [ "man:example(1)" "man:example(5)" ]; Description = "Example description";
}; Documentation = [ "man:example(1)" "man:example(5)" ];
};
${type} = { ${type} = {
}; };
} }
};
''; '';
sessionVariables = mkIf (cfg.sessionVariables != {}) { sessionVariables = mkIf (cfg.sessionVariables != {}) {