refactor(nix/hm/price): use programs.bat to configure bat
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m4s

This commit is contained in:
Price Hiller 2024-05-27 17:59:14 +00:00
parent ef056c7af9
commit 212874e286
Signed by: Price
GPG Key ID: C3FADDE7A8534BEB
5 changed files with 16 additions and 8 deletions

View File

@ -75,6 +75,7 @@
inputs.home-manager.lib.homeManagerConfiguration {
pkgs = nixpkgs.legacyPackages.x86_64-linux;
extraSpecialArgs = {
clib = (import ./lib { lib = nixpkgs.lib; });
inherit inputs;
};
modules = [

View File

@ -0,0 +1,13 @@
{ ... }:
{
programs.bat = {
enable = true;
config = {
style = "header,grid,numbers,snip";
italic-text = "always";
pager = "never";
theme = "Kanagawa";
};
themes.Kanagawa = builtins.readFile ./Kanagawa.tmTheme;
};
}

View File

@ -1,8 +0,0 @@
# This is `bat`s configuration file. Each line either contains a comment or
# a command-line option that you want to pass to `bat` by default. You can
# run `bat --help` to get a list of all possible configuration options.
--theme="gruvbox-dark"
--style="header,grid,numbers,snip"
--italic-text="always"
--pager="never"
--theme="Kanagawa"

View File

@ -2,6 +2,7 @@
pkgs,
config,
lib,
clib,
...
}:
let
@ -19,6 +20,7 @@ let
));
in
{
imports = (clib.recurseFilesInDirs [ ./conf ] ".nix");
programs.home-manager.enable = true;
nixpkgs = {
config.allowUnfree = true;