aboutsummaryrefslogtreecommitdiffstats
path: root/modules/web
diff options
context:
space:
mode:
Diffstat (limited to 'modules/web')
-rw-r--r--modules/web/aria2/default.nix10
-rw-r--r--modules/web/brave/default.nix15
2 files changed, 18 insertions, 7 deletions
diff --git a/modules/web/aria2/default.nix b/modules/web/aria2/default.nix
index 79c6f8e..efea840 100644
--- a/modules/web/aria2/default.nix
+++ b/modules/web/aria2/default.nix
@@ -7,9 +7,15 @@
# Aria2 - command line download manager
{
- config = lib.mkIf config.programs.aria2.enable {
+ options.web.aria2 = {
+ enable = lib.mkEnableOption "Enables aria2.";
+ package = lib.mkPackageOption pkgs "aria2" { };
+ };
+
+ config = lib.mkIf config.web.aria2.enable {
programs.aria2 = {
- package = pkgs.aria2;
+ enable = true;
+ package = config.web.aria2.package;
settings = {
dir = "${config.home.homeDirectory}/Downloads";
};
diff --git a/modules/web/brave/default.nix b/modules/web/brave/default.nix
index 936da6a..e323058 100644
--- a/modules/web/brave/default.nix
+++ b/modules/web/brave/default.nix
@@ -6,8 +6,13 @@
}:
{
- config = lib.mkIf config.programs.brave.enable {
+ options.web.brave = {
+ enable = lib.mkEnableOption "Enables brave.";
+ };
+
+ config = lib.mkIf config.web.brave.enable {
programs.brave = {
+ enable = true;
package = pkgs.brave;
commandLineArgs = [
@@ -16,10 +21,10 @@
];
extensions = [
- { id = "nngceckbapebfimnlniiiahkandclblb"; } # Bitwarden
- { id = "mpkodccbngfoacfalldjimigbofkhgjn"; } # Aria2 Explorer
- { id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; } # Dark Reader
- { id = "hpejmncgbammabkkodflfeekpcicfjnk"; } # Quite Black
+ { id = "nngceckbapebfimnlniiiahkandclblb"; }
+ { id = "mpkodccbngfoacfalldjimigbofkhgjn"; }
+ { id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; }
+ { id = "hpejmncgbammabkkodflfeekpcicfjnk"; }
];
};