1
0
mirror of https://github.com/nix-community/home-manager synced 2024-06-18 12:38:30 +02:00

pet: don't create file without snippets

(cherry picked from commit 15d94f3058)
This commit is contained in:
Loïc Reynier 2022-12-01 17:11:46 +01:00 committed by Robert Helgesson
parent 32c336c767
commit 3c3af4bbff
No known key found for this signature in database
GPG Key ID: 36BDAA14C2797E89

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; };
};
};
};
}