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:
parent
65700a4fd1
commit
15d94f3058
1 changed files with 3 additions and 2 deletions
|
@ -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; };
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue