1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-01 00:39:45 +01:00

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

View file

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