feat(home): Enable bacon with rust cfg

This commit is contained in:
Jalil David Salamé Messina 2024-04-02 15:25:42 +02:00
parent ce3a42f901
commit f8b43d8f36
Signed by: jalil
GPG key ID: F016B9E770737A0B

View file

@ -113,8 +113,7 @@ in
(lib.mkIf (cfg.enable && devcfg.enable) {
home = {
sessionVariables.MANPAGER = lib.optionalString devcfg.neovimAsManPager "nvim -c 'Man!' -o -";
packages = devcfg.extraPackages
++ lib.optionals devcfg.rust.enable ([ pkgs.rustup ] ++ devcfg.rust.extraPackages);
packages = devcfg.extraPackages;
};
# Github CLI
@ -151,5 +150,10 @@ in
# Jujutsu (alternative DVCS (git-compatible))
programs.jujutsu.enable = true;
})
(lib.mkIf (cfg.enable && devcfg.enable && devcfg.rust.enable) {
home.packages = [ pkgs.rustup ] ++ devcfg.rust.extraPackages;
# Background code checker (for Rust)
programs.bacon.enable = true;
})
];
}