pet: don't create file without snippets

This commit is contained in:
Loïc Reynier 2022-12-01 17:11:46 +01:00 committed by Robert Helgesson
parent 65700a4fd1
commit 15d94f3058
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89
1 changed files with 3 additions and 2 deletions

View File

@ -99,8 +99,9 @@ in {
else {
General = cfg.settings;
});
"pet/snippet.toml".source =
format.generate "snippet.toml" { snippets = cfg.snippets; };
"pet/snippet.toml" = mkIf (cfg.snippets != [ ]) {
source = format.generate "snippet.toml" { snippets = cfg.snippets; };
};
};
};
}