Set delta to use stylix-generated syntax theme
Update git config for better delta experience Remove gitui, wasn't using it anyway... Clean up SSH host definitions a bit Remove emacs magit-delta and yuck-mode packages
This commit is contained in:
parent
581295af0a
commit
dda19b7660
17
flake.lock
17
flake.lock
|
@ -380,22 +380,6 @@
|
|||
"type": "github"
|
||||
}
|
||||
},
|
||||
"gitui": {
|
||||
"flake": false,
|
||||
"locked": {
|
||||
"lastModified": 1696228836,
|
||||
"narHash": "sha256-jlP+BnNa7vWteLKeNm2woXaSPsAu7RTNgiu9VZMKkw4=",
|
||||
"owner": "extrawurst",
|
||||
"repo": "gitui",
|
||||
"rev": "b7772e63e4a5ba42ff3b09548debe7be5776f520",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "extrawurst",
|
||||
"repo": "gitui",
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"home-manager": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
|
@ -676,7 +660,6 @@
|
|||
"inputs": {
|
||||
"anyrun": "anyrun",
|
||||
"doom-emacs": "doom-emacs",
|
||||
"gitui": "gitui",
|
||||
"home-manager": "home-manager",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"stylix": "stylix",
|
||||
|
|
|
@ -25,10 +25,6 @@
|
|||
url = "github:doomemacs/doomemacs";
|
||||
flake = false;
|
||||
};
|
||||
gitui = {
|
||||
url = "github:extrawurst/gitui";
|
||||
flake = false;
|
||||
};
|
||||
tokyonight-folke = {
|
||||
url = "github:folke/tokyonight.nvim";
|
||||
flake = false;
|
||||
|
@ -72,7 +68,7 @@
|
|||
inherit (inputs) anyrun watershot;
|
||||
};
|
||||
extraSpecialArgs = specialArgs // {
|
||||
inherit (inputs) doom-emacs gitui tokyonight-folke;
|
||||
inherit (inputs) doom-emacs tokyonight-folke;
|
||||
};
|
||||
in nixpkgs.lib.nixosSystem {
|
||||
inherit system specialArgs;
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
{ config, lib, pkgs, tokyonight-folke, gitui, ... }:
|
||||
{ config, lib, pkgs, tokyonight-folke, ... }:
|
||||
|
||||
{
|
||||
xdg.configFile."bat/themes/tokyonight_night.tmTheme".source =
|
||||
"${tokyonight-folke}/extras/sublime/tokyonight_night.tmTheme";
|
||||
programs = {
|
||||
bash.enable = true;
|
||||
readline = {
|
||||
|
@ -21,6 +23,7 @@
|
|||
enableBashIntegration = true;
|
||||
enableZshIntegration = true;
|
||||
};
|
||||
bat.enable = true;
|
||||
git = {
|
||||
enable = true;
|
||||
package = pkgs.gitFull;
|
||||
|
@ -29,26 +32,21 @@
|
|||
delta = {
|
||||
enable = true;
|
||||
options = {
|
||||
blame-code-style = "syntax";
|
||||
line-numbers = true;
|
||||
hyprlinks = true;
|
||||
navigate = true;
|
||||
side-by-side = true;
|
||||
zero-style = "dim syntax";
|
||||
syntax-theme = "base16-stylix";
|
||||
};
|
||||
};
|
||||
extraConfig = {
|
||||
pull.rebase = false;
|
||||
init.defaultBranch = "main";
|
||||
merge.conflictstyle = "diff3";
|
||||
diff.colorMoved = "default";
|
||||
credential.helper = "${pkgs.gitFull}/bin/git-credential-libsecret";
|
||||
};
|
||||
};
|
||||
gitui = {
|
||||
enable = true;
|
||||
keyConfig = builtins.readFile "${gitui}/vim_style_key_config.ron";
|
||||
theme = builtins.readFile
|
||||
"${tokyonight-folke}/extras/gitui/tokyonight_night.ron";
|
||||
};
|
||||
bat.enable = true;
|
||||
ssh = {
|
||||
enable = true;
|
||||
forwardAgent = true;
|
||||
|
@ -61,10 +59,7 @@
|
|||
SetEnv TERM=xterm-256color
|
||||
'';
|
||||
matchBlocks = {
|
||||
"vanguard" = {
|
||||
user = "xenia";
|
||||
hostname = "192.168.1.166";
|
||||
};
|
||||
"git*".user = "git";
|
||||
"legion" = {
|
||||
user = "xenia";
|
||||
hostname = "192.168.1.230";
|
||||
|
@ -73,22 +68,18 @@
|
|||
user = "root";
|
||||
hostname = "77.68.67.133";
|
||||
};
|
||||
"freia".hostname = "freia020.hpc.l";
|
||||
"freia???" =
|
||||
lib.hm.dag.entryAfter [ "freia" ] { hostname = "%h.hpc.l"; };
|
||||
"heimdall".hostname = "heimdall003.jet.uk";
|
||||
"heimdall???" =
|
||||
lib.hm.dag.entryAfter [ "heimdall" ] { hostname = "%h.jet.uk"; };
|
||||
"freia* heimdall*" = lib.hm.dag.entryAfter [
|
||||
"freia"
|
||||
"freia???"
|
||||
"heimdall"
|
||||
"heimdall???"
|
||||
] {
|
||||
"freia" = {
|
||||
user = "elitherl";
|
||||
hostname = "freia020.hpc.l";
|
||||
compression = true;
|
||||
localForwards = [{
|
||||
bind.port = 6702;
|
||||
host = {
|
||||
address = "127.0.0.1";
|
||||
port = 6702;
|
||||
};
|
||||
}];
|
||||
};
|
||||
"git*".user = "git";
|
||||
};
|
||||
};
|
||||
starship = {
|
||||
|
|
|
@ -67,11 +67,7 @@
|
|||
+workspaces-switch-project-function 'doom-project-browse
|
||||
+workspaces-on-switch-project-behavior t))
|
||||
|
||||
(after! magit
|
||||
(require 'magit-delta)
|
||||
(setq magit-clone-default-directory "~/Projects/")
|
||||
(after! magit-delta
|
||||
(add-hook 'magit-mode-hook (lambda () (magit-delta-mode +1)))))
|
||||
(after! magit (setq magit-clone-default-directory "~/Projects/"))
|
||||
|
||||
;; mail settings
|
||||
(after! mu4e
|
||||
|
|
|
@ -3,5 +3,3 @@
|
|||
|
||||
(package! pdf-tools :built-in 'prefer)
|
||||
(package! pocket-reader)
|
||||
(package! magit-delta)
|
||||
(package! yuck-mode)
|
||||
|
|
Loading…
Reference in a new issue