Add tokyonight theme
Add tokyonight theme to fish and bat (and by extension delta) Add extra zsh features
This commit is contained in:
parent
d83dd577bc
commit
36f2f5a102
|
@ -16,9 +16,11 @@
|
|||
|
||||
home.packages = [pkgs.gcc];
|
||||
|
||||
programs.zsh.shellAliases.update = "home-manager switch";
|
||||
programs.zsh.envExtra = ''
|
||||
export CC=${pkgs.gcc}/bin/gcc
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
'';
|
||||
programs.zsh = {
|
||||
shellAliases.update = "home-manager switch";
|
||||
sessionVariables.CC = "${pkgs.gcc}/bin/gcc";
|
||||
envExtra = ''
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -3,10 +3,7 @@
|
|||
home.username = "xenia";
|
||||
home.homeDirectory = "/home/xenia";
|
||||
home.stateVersion = "22.11";
|
||||
home.packages = with pkgs; [
|
||||
prismlauncher
|
||||
nomachine-client
|
||||
];
|
||||
home.packages = with pkgs; [prismlauncher nomachine-client];
|
||||
|
||||
programs.fish.shellAbbrs.hypr = "exec Hyprland";
|
||||
xdg.configFile."hypr/hyprpaper.conf".text = ''
|
||||
|
|
10
home/env/bat.nix
vendored
10
home/env/bat.nix
vendored
|
@ -2,9 +2,17 @@
|
|||
programs.bat = {
|
||||
enable = true;
|
||||
config = {
|
||||
theme = "Catppuccin-macchiato";
|
||||
theme = "tokyonight";
|
||||
};
|
||||
themes = {
|
||||
tokyonight = builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "folke";
|
||||
repo = "tokyonight.nvim";
|
||||
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
|
||||
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
|
||||
}
|
||||
+ "/extras/sublime/tokyonight_storm.tmTheme");
|
||||
Catppuccin-macchiato = builtins.readFile (pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "catppuccin";
|
||||
|
|
15
home/env/fish.nix
vendored
15
home/env/fish.nix
vendored
|
@ -1,10 +1,23 @@
|
|||
{...}: {
|
||||
{pkgs, ...}: {
|
||||
programs.fish = {
|
||||
enable = true;
|
||||
shellAbbrs = {
|
||||
lg = "lazygit";
|
||||
nixos-update = "sudo git -C /etc/nixos/config pull && sudo nixos-rebuild switch";
|
||||
};
|
||||
plugins = [
|
||||
{
|
||||
name = "tokyonight";
|
||||
src =
|
||||
pkgs.fetchFromGitHub {
|
||||
owner = "folke";
|
||||
repo = "tokyonight.nvim";
|
||||
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
|
||||
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
|
||||
}
|
||||
+ "/extras/fish/tokyonight_storm.fish";
|
||||
}
|
||||
];
|
||||
};
|
||||
programs.keychain.enableFishIntegration = true;
|
||||
programs.starship.enableFishIntegration = true;
|
||||
|
|
12
home/env/zsh.nix
vendored
12
home/env/zsh.nix
vendored
|
@ -1,15 +1,19 @@
|
|||
{config, ...}: {
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
enableSyntaxHighlighting = true;
|
||||
enableVteIntegration = true;
|
||||
autocd = true;
|
||||
dotDir = ".config/zsh";
|
||||
historySubstringSearch.enable = true;
|
||||
shellAliases = {
|
||||
ll = "ls -l";
|
||||
lg = "lazygit";
|
||||
nixos-update = "sudo git -C /etc/nixos/config pull && sudo nixos-rebuild switch";
|
||||
};
|
||||
history = {
|
||||
size = 10000;
|
||||
path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
history.path = "${config.xdg.dataHome}/zsh/history";
|
||||
};
|
||||
programs.keychain.enableZshIntegration = true;
|
||||
programs.starship.enableZshIntegration = true;
|
||||
|
|
|
@ -1,10 +1,28 @@
|
|||
{...}: {
|
||||
{pkgs, ...}: {
|
||||
imports = [../env/bat.nix];
|
||||
xdg.configFile."git/tokyonight_storm.gitconfig".source =
|
||||
pkgs.fetchFromGitHub
|
||||
{
|
||||
owner = "folke";
|
||||
repo = "tokyonight.nvim";
|
||||
rev = "cd5156f4b4a6c4c337a46deb0c0bd37319920833";
|
||||
sha256 = "/ht+ixR1eyYR0la00Xq5q1gCsgb5Ly90JghERwbaDPQ=";
|
||||
}
|
||||
+ "/extras/delta/tokyonight_storm.gitconfig";
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "Evie Litherland-Smith";
|
||||
includes = [{path = "tokyonight_storm.gitconfig";}];
|
||||
delta = {
|
||||
enable = true;
|
||||
options.syntax-theme = "Catppuccin-macchiato";
|
||||
options = {
|
||||
blame-code-style = "syntax";
|
||||
line-numbers = true;
|
||||
navigate = true;
|
||||
side-by-side = true;
|
||||
syntax-theme = "tokyonight";
|
||||
zero-style = "dim syntax";
|
||||
};
|
||||
};
|
||||
extraConfig = {
|
||||
pull.rebase = false;
|
||||
|
|
Loading…
Reference in a new issue