blob: e0980d08d9d7f4bd8fe83fd90a6bd3cf2a39388d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
{
config,
options,
lib,
pkgs,
...
}: let
newsboatConfig = config.modules.desktop.apps.newsboat;
defaultApps = config.modules.desktop.defaultApplications.apps;
in
{
options.modules.desktop.apps.newsboat = {
enable = lib.mkOption {
type = lib.types.bool;
default = false;
};
};
config = lib.mkIf (newsboatConfig.enable) {
home.manager.programs.newsboat = {
enable = true;
extraConfig = ''
macro y set browser "${defaultApps.video.cmd} %u" ; open-in-browser ; set browser "${defaultApps.browser.cmd} %u"
'';
};
};
}
|