From 23616c2e13f63f0262d64538032b98ce83cc0ec2 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Wed, 15 Jul 2026 20:32:36 +0530 Subject: feat: renamed the options to reflect their changed directory stucture Renamed the options for the configurations based on the sub-module that they belong to --- modules/web/aria2/default.nix | 10 ++++++++-- modules/web/brave/default.nix | 15 ++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) (limited to 'modules/web') 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"; } ]; }; -- cgit v1.2.3