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:
parent
09280e17bb
commit
b6fd653ef8
1 changed files with 3 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Reference in a new issue