aboutsummaryrefslogtreecommitdiffstats
path: root/modules/tools
diff options
context:
space:
mode:
authorArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-11-27 23:17:55 +0530
committerArpit Chakladar <54011232+arpitchakladar@users.noreply.github.com>2025-11-27 23:17:55 +0530
commit547bf872cbf85f4718576e1ac3a0eab094ccd26a (patch)
tree9645f7ccaa242d8e19839f197684544a2a6dd319 /modules/tools
parent1b6736d9b114c10a0fa02fdf9d30037fb44a3ff6 (diff)
downloadhome-manager-config-547bf872cbf85f4718576e1ac3a0eab094ccd26a.tar.gz
home-manager-config-547bf872cbf85f4718576e1ac3a0eab094ccd26a.zip
Configured brave for for comfortably sized UI.
Showing file previews in nnn.
Diffstat (limited to 'modules/tools')
-rw-r--r--modules/tools/brave/default.nix22
-rw-r--r--modules/tools/default.nix1
-rw-r--r--modules/tools/kitty/default.nix4
-rw-r--r--modules/tools/lsd/default.nix12
-rw-r--r--modules/tools/nnn/default.nix30
-rw-r--r--modules/tools/zsh/default.nix5
6 files changed, 59 insertions, 15 deletions
diff --git a/modules/tools/brave/default.nix b/modules/tools/brave/default.nix
index 93b4b84..3fd5f22 100644
--- a/modules/tools/brave/default.nix
+++ b/modules/tools/brave/default.nix
@@ -6,8 +6,26 @@
};
config = lib.mkIf config.tools.brave.enable {
- home.packages = [
- pkgs.brave
+ 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 = ''
+#!${pkgs.bash}/bin/bash
+exec ${pkgs.brave}/bin/brave --force-device-scale-factor=1.2 "$@"
+'';
+ executable = true;
+ };
};
}
diff --git a/modules/tools/default.nix b/modules/tools/default.nix
index 2cc4330..d733a12 100644
--- a/modules/tools/default.nix
+++ b/modules/tools/default.nix
@@ -11,6 +11,7 @@
./git
./htop
./kitty
+ ./lsd
./neofetch
./neovim
./nnn
diff --git a/modules/tools/kitty/default.nix b/modules/tools/kitty/default.nix
index 74b4519..a53bbb4 100644
--- a/modules/tools/kitty/default.nix
+++ b/modules/tools/kitty/default.nix
@@ -16,7 +16,6 @@
scrollback_indicator_opacity = "0.5";
dynamic_background_opacity = false;
- allow_remote_control = false;
enable_audio_bell = false;
background = base00;
@@ -42,6 +41,9 @@
selection_background = base03;
selection_foreground = base00;
+
+ allow_remote_control = "yes";
+ listen_on = "unix:/tmp/kitty";
};
};
}
diff --git a/modules/tools/lsd/default.nix b/modules/tools/lsd/default.nix
new file mode 100644
index 0000000..feb1481
--- /dev/null
+++ b/modules/tools/lsd/default.nix
@@ -0,0 +1,12 @@
+{ config, lib, ... }:
+
+{
+ options.tools.lsd = {
+ enable = lib.mkEnableOption "Enables lsd.";
+ };
+
+ config = lib.mkIf config.tools.lsd.enable {
+ programs.lsd.enable = true;
+ programs.lsd.settings.icons.separator = " ";
+ };
+}
diff --git a/modules/tools/nnn/default.nix b/modules/tools/nnn/default.nix
index 298f538..641e3a5 100644
--- a/modules/tools/nnn/default.nix
+++ b/modules/tools/nnn/default.nix
@@ -5,12 +5,28 @@
enable = lib.mkEnableOption "Enables nnn.";
};
- config =
- let
- nnnWithNerdIcons = pkgs.nnn.override ({ withNerdIcons = true; });
- in lib.mkIf config.tools.nnn.enable {
- programs.nnn.enable = true;
- programs.nnn.package = nnnWithNerdIcons;
- programs.nnn.plugins.src = "${nnnWithNerdIcons}/share/plugins";
+ config = lib.mkIf config.tools.nnn.enable {
+ home.sessionVariables = {
+ # Start nnn in detail mode + show hidden items by default
+ NNN_OPTS = "dH";
+ NNN_FIFO = "/tmp/nnn.fifo";
+ };
+
+ programs.nnn = {
+ enable = true;
+ package = pkgs.nnn.override ({ withNerdIcons = true; });
+ plugins = {
+ src = "${config.programs.nnn.package}/share/plugins";
+ mappings = {
+ p = "preview-tui";
+ };
+ };
+ extraPackages = with pkgs; [
+ bat
+ ffmpeg
+ ffmpegthumbnailer
+ ueberzugpp
+ ];
+ };
};
}
diff --git a/modules/tools/zsh/default.nix b/modules/tools/zsh/default.nix
index 0f10e72..6c1f343 100644
--- a/modules/tools/zsh/default.nix
+++ b/modules/tools/zsh/default.nix
@@ -14,12 +14,7 @@ ${if config.tools.fzf.enable then
"eval \"$(fzf --zsh)\""
else ""}
${builtins.readFile ./zshrc}
-${if config.scripts.enable then
- "export PATH=${config.home.homeDirectory}/scripts:$PATH"
-else ""}
'';
programs.kitty.settings.shell = lib.mkIf config.tools.kitty.enable "zsh";
- programs.zsh.shellAliases."nnn" = lib.mkIf config.tools.nnn.enable "nnn -H -d";
- # programs.zsh.shellAliases."ls" = lib.mkIf config.tools.lsd.enable "lsd";
};
}