Move bat into env, required by git (for delta)

This commit is contained in:
Evie Litherland-Smith 2023-04-25 16:27:54 +01:00
parent b460ba843a
commit 331ae65d69
6 changed files with 36 additions and 31 deletions

View file

@ -3,7 +3,15 @@
imports = [ imports = [
../../desktop ../../desktop
../../env ../../env/fonts/firacode.nix
../../env/shell/bash.nix
../../env/shell/fish.nix
../../env/bat.nix
../../env/direnv.nix
../../env/keychain.nix
../../env/nixpkgs.nix
../../env/ssh.nix
../../env/starship.nix
../../git/work ../../git/work

19
nixos/home/env/bat.nix vendored Normal file
View file

@ -0,0 +1,19 @@
{ pkgs, ... }:
{
imports = [ ../env/fonts];
programs.bat = {
enable = true;
config = {
theme = "Catppuccin-macchiato";
};
themes = {
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
} + "/Catppuccin-macchiato.tmTheme");
};
};
}

View file

@ -1,13 +0,0 @@
{ ... }:
{
imports = [
./fonts
./shell
./direnv.nix
./keychain.nix
./nixpkgs.nix
./qemu.nix
./ssh.nix
./starship.nix
];
}

View file

@ -1,13 +1,19 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
../env/bat.nix
../env/ssh.nix ../env/ssh.nix
../env/shell ../env/shell
]; ];
programs.git = { programs.git = {
enable = true; enable = true;
userName = "Evie Litherland-Smith"; userName = "Evie Litherland-Smith";
delta.enable = true; delta = {
enable = true;
options = {
syntax-theme = "Catppuccin-macchiato";
};
};
extraConfig = { extraConfig = {
pull = { pull = {
rebase = false; rebase = false;

View file

@ -1,22 +1,6 @@
{ pkgs, ... }: { pkgs, ... }:
{ {
imports = [ ../env/fonts];
programs.bat = {
enable = true;
config = {
theme = "Catppuccin-macchiato";
};
themes = {
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
{
owner = "catppuccin";
repo = "bat";
rev = "ba4d16880d63e656acced2b7d4e034e4a93f74b1";
sha256 = "6WVKQErGdaqb++oaXnY3i6/GuH2FhTgK0v4TN4Y0Wbw=";
} + "/Catppuccin-macchiato.tmTheme");
};
};
home.packages = with pkgs; [ home.packages = with pkgs; [
file file
silver-searcher silver-searcher

View file

@ -1,6 +1,7 @@
{ ... }: { ... }:
{ {
imports = [ imports = [
./common.nix
./lazygit.nix ./lazygit.nix
./neovim.nix ./neovim.nix
]; ];