1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-11-30 06:59:45 +01:00

newsboat: add package option

This commit is contained in:
Benno Bielmeier 2024-08-07 12:25:40 +02:00
parent b3d5ea65d8
commit 645d47188c

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" { };
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 = [ 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.