aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-15 00:25:02 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-12-15 00:25:02 +0530
commit47ad00968174d7721e41df3ef4c5366a0499a427 (patch)
treec465da5b676eac0f7f45add8310830053053f75e /modules/tools
parent4370f3c2fe973db6c65edf3792e1c261e62751fd (diff)
downloadhome-manager-config-47ad00968174d7721e41df3ef4c5366a0499a427.tar.gz
home-manager-config-47ad00968174d7721e41df3ef4c5366a0499a427.zip
Using chromium options in home manager to configure brave
Diffstat (limited to 'modules/tools')
-rw-r--r--modules/tools/brave/default.nix31
-rw-r--r--modules/tools/chromium/default.nix21
-rw-r--r--modules/tools/chromium/extensions.nix21
-rw-r--r--modules/tools/default.nix2
-rw-r--r--modules/tools/feh/default.nix4
5 files changed, 45 insertions, 34 deletions
diff --git a/modules/tools/brave/default.nix b/modules/tools/brave/default.nix
deleted file mode 100644
index d1b0d3e..0000000
--- a/modules/tools/brave/default.nix
+++ /dev/null
@@ -1,31 +0,0 @@
-{ config, lib, pkgs, ... }:
-
-{
- options.tools.brave = {
- enable = lib.mkEnableOption "Enables brave.";
- };
-
- config = lib.mkIf config.tools.brave.enable {
- home.packages = with pkgs; [
- # Modify the brave-browser.desktop entry to scale the UI
- (brave.overrideAttrs (old: {
- postInstall = (old.postInstall or "") + ''
- sed -i 's|^Exec=\(.*brave[^\n]*\)|Exec=\1 --force-device-scale-factor=1.2|' \
- $out/share/applications/brave-browser.desktop
- '';
- }))
- ];
-
- home.sessionPath = [
- "${config.home.homeDirectory}/.local/bin"
- ];
-
- home.file.".local/bin/brave" = {
- text = ''
-#!/bin/sh
-exec ${pkgs.brave}/bin/brave --force-device-scale-factor=1.2 "$@"
-'';
- executable = true;
- };
- };
-}
diff --git a/modules/tools/chromium/default.nix b/modules/tools/chromium/default.nix
new file mode 100644
index 0000000..6b49d56
--- /dev/null
+++ b/modules/tools/chromium/default.nix
@@ -0,0 +1,21 @@
+{ config, lib, pkgs, ... }:
+
+{
+ imports = [
+ ./extensions.nix
+ ];
+
+ options.tools.chromium = {
+ enable = lib.mkEnableOption "Enables chromium (with brave).";
+ };
+
+ config = lib.mkIf config.tools.chromium.enable {
+ programs.chromium = {
+ enable = true;
+ package = pkgs.brave;
+ commandLineArgs = [
+ "--force-device-scale-factor=1.2"
+ ];
+ };
+ };
+}
diff --git a/modules/tools/chromium/extensions.nix b/modules/tools/chromium/extensions.nix
new file mode 100644
index 0000000..7371087
--- /dev/null
+++ b/modules/tools/chromium/extensions.nix
@@ -0,0 +1,21 @@
+{ config, lib, ... }:
+
+{
+ config = lib.mkIf config.tools.chromium.enable {
+ # NOTE: Currently doesn't work for brave
+ programs.chromium.extensions = [
+ {
+ id = "hfjbmagddngcpeloejdejnfgbamkjaeg"; # Vimium C
+ }
+ {
+ id = "nngceckbapebfimnlniiiahkandclblb"; # Bitwarden Password Manager
+ }
+ {
+ id = "eimadpbcbfnmbkopoojfekhnkhdbieeh"; # Dark Reader
+ }
+ {
+ id = "mkplpffahhkjfocfbfapcemhhkgmljpn"; # All Black - Full Dark Theme/Black Theme
+ }
+ ];
+ };
+}
diff --git a/modules/tools/default.nix b/modules/tools/default.nix
index 3bafb42..2b1949e 100644
--- a/modules/tools/default.nix
+++ b/modules/tools/default.nix
@@ -5,8 +5,8 @@
./atac
./bluetui
./bottom
- ./brave
./brightnessctl
+ ./chromium
./feh
./fzf
./git
diff --git a/modules/tools/feh/default.nix b/modules/tools/feh/default.nix
index 8aa5631..c7412f2 100644
--- a/modules/tools/feh/default.nix
+++ b/modules/tools/feh/default.nix
@@ -1,11 +1,11 @@
-{ config, lib, pkgs, ... }:
+{ config, lib, ... }:
{
options.tools.feh = {
enable = lib.mkEnableOption "Enables feh.";
};
- config = lib.mkIf config.tools.git.enable {
+ config = lib.mkIf config.tools.feh.enable {
programs.feh.enable = true;
};
}