aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools/brave/default.nix
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/brave/default.nix
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/brave/default.nix')
-rw-r--r--modules/tools/brave/default.nix31
1 files changed, 0 insertions, 31 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;
- };
- };
-}