From 03eecab630cfe5be8537c0ebab99c021fdfbba1e Mon Sep 17 00:00:00 2001 From: Arpit Chakladar <54011232+arpitchakladar@users.noreply.github.com> Date: Sun, 30 Nov 2025 00:24:09 +0530 Subject: Using unstable branches for nixpkgs and home manager. --- modules/tools/bat/default.nix | 22 ------ modules/tools/bat/theme.mustache.tmTheme | 120 ------------------------------- modules/tools/default.nix | 1 - modules/tools/git/default.nix | 6 +- modules/tools/zsh/default.nix | 2 +- 5 files changed, 4 insertions(+), 147 deletions(-) delete mode 100644 modules/tools/bat/default.nix delete mode 100644 modules/tools/bat/theme.mustache.tmTheme (limited to 'modules') diff --git a/modules/tools/bat/default.nix b/modules/tools/bat/default.nix deleted file mode 100644 index d459042..0000000 --- a/modules/tools/bat/default.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ config, lib, pkgs, ... }: - -{ - options.tools.bat = { - enable = lib.mkEnableOption "Enables bat."; - }; - - config = lib.mkIf config.tools.bat.enable { - programs.bat.enable = true; - programs.bat.config = { - tabs = "4"; - theme = "custom-theme"; - }; - # shell.alias."cat" = "${pkgs.bat}/bin/bat -pp"; - # shell.alias."less" = "${pkgs.bat}/bin/bat --paging always"; - # home.sessionVariables."PAGER" = "${pkgs.bat}/bin/bat --paging always"; - xdg.configFile."bat/themes/custom-theme.tmTheme".source - = config.scheme { - template = builtins.readFile ./theme.mustache.tmTheme; - }; - }; -} diff --git a/modules/tools/bat/theme.mustache.tmTheme b/modules/tools/bat/theme.mustache.tmTheme deleted file mode 100644 index 844b80d..0000000 --- a/modules/tools/bat/theme.mustache.tmTheme +++ /dev/null @@ -1,120 +0,0 @@ - - - - name - customTheme - settings - - - - settings - - background - #{{base00-hex}} - foreground - #{{base05-hex}} - caret - #{{base07-hex}} - invisibles - #{{base03-hex}} - lineHighlight - #{{base02-hex}} - selection - #{{base03-hex}} - - - - - - scope - comment - settings - - foreground - #{{base04-hex}} - - - - - scope - string - settings - - foreground - #{{base0A-hex}} - - - - - scope - constant.numeric - settings - - foreground - #{{base09-hex}} - - - - - scope - variable - settings - - foreground - #{{base08-hex}} - - - - - scope - keyword - settings - - foreground - #{{base0D-hex}} - - - - - scope - support.function - settings - - foreground - #{{base0E-hex}} - - - - - scope - constant.language - settings - - foreground - #{{base0B-hex}} - - - - - scope - entity.name.tag - settings - - foreground - #{{base0C-hex}} - - - - - scope - invalid - settings - - foreground - #{{base0F-hex}} - - - - - - diff --git a/modules/tools/default.nix b/modules/tools/default.nix index f288dd3..243d2f2 100644 --- a/modules/tools/default.nix +++ b/modules/tools/default.nix @@ -2,7 +2,6 @@ { imports = [ - ./bat ./bluetui ./bottom ./brave diff --git a/modules/tools/git/default.nix b/modules/tools/git/default.nix index d1dee35..fc90cef 100644 --- a/modules/tools/git/default.nix +++ b/modules/tools/git/default.nix @@ -16,9 +16,9 @@ config = lib.mkIf config.tools.git.enable { programs.git = { enable = true; - userName = config.tools.git.username; - userEmail = config.tools.git.email; - extraConfig = { + settings = { + user.name = config.tools.git.username; + user.email = config.tools.git.email; credential.helper = "store --file ${config.xdg.cacheHome}/git/credential"; core.askPass = ""; }; diff --git a/modules/tools/zsh/default.nix b/modules/tools/zsh/default.nix index 0011da4..e508509 100644 --- a/modules/tools/zsh/default.nix +++ b/modules/tools/zsh/default.nix @@ -8,7 +8,7 @@ config = lib.mkIf config.tools.zsh.enable { programs.zsh = { enable = true; - dotDir = ".config/zsh"; + dotDir = "${config.xdg.configHome}/zsh"; history.path = "${config.xdg.cacheHome}/zsh/history"; initContent = '' ${if config.tools.fzf.enable then -- cgit v1.2.3