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