fork/home-manager
git clone https://git.julia.blue/fork/home-manager
a88df2fb
master
1{ config , lib , pkgs , ...} : 2 3with lib ; 4 5let 6 7cfg = config . programs . bacon ; 8 9settingsFormat = pkgs . formats . toml { }; 10in { 11meta . maintainers = [ hm . maintainers . shimunn ]; 12 13options . programs . bacon = { 14enable = mkEnableOption "bacon, a background rust code checker" ; 15 16settings = mkOption { 17type = settingsFormat . type ; 18example = { 19jobs . default = { 20command = [ "cargo" "build" "--all-features" "--color" "always" ]; 21need_stdout = true ; 22}; 23}; 24description = '' 25Bacon configuration. 26For available settings see <https://dystroy.org/bacon/#global-preferences>. 27'' ; 28}; 29}; 30 31config = mkIf cfg . enable { 32home . packages = [ pkgs . bacon ]; 33 34xdg . configFile . "bacon/prefs.toml" . source = 35settingsFormat . generate "prefs.toml" cfg . settings ; 36}; 37}