1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00

newsboat: add a package option to the module

This commit is contained in:
Ilya Savitsky 2025-03-28 10:00:25 +00:00 committed by Ilya Savitsky
parent 1efd250317
commit f5bf7a49d2

View file

@ -39,6 +39,8 @@ in {
programs.newsboat = { programs.newsboat = {
enable = mkEnableOption "the Newsboat feed reader"; enable = mkEnableOption "the Newsboat feed reader";
package = mkPackageOption pkgs "newsboat" { nullable = true; };
urls = mkOption { urls = mkOption {
type = types.listOf (types.submodule { type = types.listOf (types.submodule {
options = { options = {
@ -132,7 +134,7 @@ in {
''; '';
}]; }];
home.packages = [ pkgs.newsboat ]; home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
# Use ~/.newsboat on stateVersion < 21.05 and use ~/.config/newsboat for # Use ~/.newsboat on stateVersion < 21.05 and use ~/.config/newsboat for
# stateVersion >= 21.05. # stateVersion >= 21.05.