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 (#6717)

This commit is contained in:
Ilya Savitsky 2025-03-30 19:40:01 +01:00 committed by GitHub
parent 09280e17bb
commit b6fd653ef8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -39,6 +39,8 @@ in {
programs.newsboat = {
enable = mkEnableOption "the Newsboat feed reader";
package = mkPackageOption pkgs "newsboat" { nullable = true; };
urls = mkOption {
type = types.listOf (types.submodule {
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
# stateVersion >= 21.05.