refactor(nix/hm/price): use programs.bat
to configure bat
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m4s
Some checks failed
Check Formatting of Files / Check-Formatting (push) Failing after 1m4s
This commit is contained in:
parent
ef056c7af9
commit
212874e286
@ -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 = [
|
||||
|
13
users/price/conf/bat/bat.nix
Normal file
13
users/price/conf/bat/bat.nix
Normal 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;
|
||||
};
|
||||
}
|
@ -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"
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user