mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
systemd: fix unit examples
Closes #823
(cherry picked from commit 875eea1330)
This commit is contained in:
@@ -81,15 +81,17 @@ let
|
||||
|
||||
unitExample = type: literalExample ''
|
||||
{
|
||||
Unit = {
|
||||
Description = "Example description";
|
||||
Documentation = [ "man:example(1)" "man:example(5)" ];
|
||||
};
|
||||
${toLower type}-name = {
|
||||
Unit = {
|
||||
Description = "Example description";
|
||||
Documentation = [ "man:example(1)" "man:example(5)" ];
|
||||
};
|
||||
|
||||
${type} = {
|
||||
…
|
||||
};
|
||||
}
|
||||
${type} = {
|
||||
…
|
||||
};
|
||||
}
|
||||
};
|
||||
'';
|
||||
|
||||
sessionVariables = mkIf (cfg.sessionVariables != {}) {
|
||||
|
||||
Reference in New Issue
Block a user