so much!!!
This commit is contained in:
parent
3e3d076c76
commit
f78a249d2a
7 changed files with 204 additions and 25 deletions
|
@ -1,14 +1,9 @@
|
||||||
{ pkgs
|
{ pkgs, ... }: {
|
||||||
, config
|
imports = [ ./fish ./nvim ./tmux.nix ./starship.nix ];
|
||||||
, lib
|
|
||||||
, ...
|
|
||||||
}: {
|
|
||||||
imports = [ ./fish ./nvim ];
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
bat
|
bat
|
||||||
lsd
|
lsd
|
||||||
gnupg
|
gnupg
|
||||||
tmux
|
|
||||||
colmena
|
colmena
|
||||||
];
|
];
|
||||||
|
|
||||||
|
@ -22,6 +17,17 @@
|
||||||
core = { editor = "nvim"; };
|
core = { editor = "nvim"; };
|
||||||
pull.rebase = true;
|
pull.rebase = true;
|
||||||
};
|
};
|
||||||
|
aliases = {
|
||||||
|
a = "add";
|
||||||
|
ai = "add -p";
|
||||||
|
br = "branch --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]' --sort=-committerdate";
|
||||||
|
c = "commit";
|
||||||
|
del = "branch -D";
|
||||||
|
r = "rebase";
|
||||||
|
ri = "rebase -i";
|
||||||
|
s = "status";
|
||||||
|
sw = "switch";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,8 +1,4 @@
|
||||||
{ pkgs
|
{ pkgs, config, lib, ... }: {
|
||||||
, config
|
|
||||||
, lib
|
|
||||||
, ...
|
|
||||||
}: {
|
|
||||||
programs.fish = {
|
programs.fish = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
|
|
@ -10,6 +10,9 @@
|
||||||
stylua
|
stylua
|
||||||
# Telescope
|
# Telescope
|
||||||
ripgrep
|
ripgrep
|
||||||
|
ansible-language-server
|
||||||
|
nil
|
||||||
|
nixpkgs-fmt
|
||||||
];
|
];
|
||||||
|
|
||||||
plugins = with pkgs.vimPlugins; [
|
plugins = with pkgs.vimPlugins; [
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
return {
|
||||||
|
"nvimdev/dashboard-nvim",
|
||||||
|
opts = function()
|
||||||
local logo = [[
|
local logo = [[
|
||||||
Nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanya
|
Nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanya
|
||||||
██╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗
|
██╗ ██╗ ███████╗ ██████╗ ██╗ ██╗ ██╗ ███╗ ███╗
|
||||||
|
@ -30,3 +33,5 @@ require("dashboard").setup({
|
||||||
footer = { "Meow!!!" }, --your footer
|
footer = { "Meow!!!" }, --your footer
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
end,
|
||||||
|
}
|
||||||
|
|
18
modules/home/nvim/lua/plugins/lsp.lua
Normal file
18
modules/home/nvim/lua/plugins/lsp.lua
Normal file
|
@ -0,0 +1,18 @@
|
||||||
|
return {
|
||||||
|
{
|
||||||
|
"neovim/nvim-lspconfig",
|
||||||
|
opts = {
|
||||||
|
servers = {
|
||||||
|
nil_ls = {
|
||||||
|
settings = {
|
||||||
|
["nil"] = {
|
||||||
|
formatting = {
|
||||||
|
command = { "nixpkgs-fmt" },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
121
modules/home/starship.nix
Normal file
121
modules/home/starship.nix
Normal file
|
@ -0,0 +1,121 @@
|
||||||
|
{ config, pkgs, lib, ... }:
|
||||||
|
{
|
||||||
|
programs.starship = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"[┌───────────────────>](bold green)"
|
||||||
|
"$line_break"
|
||||||
|
"[│](bold green)$username$hostname:$directory"
|
||||||
|
"$line_break"
|
||||||
|
"[└─>](bold green)"
|
||||||
|
];
|
||||||
|
username = {
|
||||||
|
style_user = "red bold";
|
||||||
|
style_root = "black bold";
|
||||||
|
format = "\\[[$user]($style)\\]";
|
||||||
|
disabled = false;
|
||||||
|
show_always = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
hostname = {
|
||||||
|
ssh_only = false;
|
||||||
|
format = lib.concatStrings [
|
||||||
|
"[$ssh_symbol](bold blue)"
|
||||||
|
"@[$hostname](bold green)"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
directory = {
|
||||||
|
truncation_length = 4;
|
||||||
|
truncation_symbol = "../";
|
||||||
|
};
|
||||||
|
|
||||||
|
status = {
|
||||||
|
symbol = "🔴";
|
||||||
|
format = lib.concatStrings [ "[\\[" "$symbol" "$common_meaning" "$signal_name" "$maybe_int" "\\]]" "($style)" ];
|
||||||
|
map_symbol = true;
|
||||||
|
disabled = false;
|
||||||
|
};
|
||||||
|
|
||||||
|
right_format = lib.concatStrings [
|
||||||
|
"$vcsh"
|
||||||
|
"$fossil_branch"
|
||||||
|
"$git_branch"
|
||||||
|
"$git_commit"
|
||||||
|
"$git_state"
|
||||||
|
"$git_metrics"
|
||||||
|
"$git_status"
|
||||||
|
"$hg_branch"
|
||||||
|
"$pijul_channel"
|
||||||
|
"$docker_context"
|
||||||
|
"$package"
|
||||||
|
"$c"
|
||||||
|
"$cmake"
|
||||||
|
"$cobol"
|
||||||
|
"$daml"
|
||||||
|
"$dart"
|
||||||
|
"$deno"
|
||||||
|
"$dotnet"
|
||||||
|
"$elixir"
|
||||||
|
"$elm"
|
||||||
|
"$erlang"
|
||||||
|
"$fennel"
|
||||||
|
"$golang"
|
||||||
|
"$guix_shell"
|
||||||
|
"$haskell"
|
||||||
|
"$haxe"
|
||||||
|
"$helm"
|
||||||
|
"$java"
|
||||||
|
"$julia"
|
||||||
|
"$kotlin"
|
||||||
|
"$gradle"
|
||||||
|
"$lua"
|
||||||
|
"$nim"
|
||||||
|
"$nodejs"
|
||||||
|
"$ocaml"
|
||||||
|
"$opa"
|
||||||
|
"$perl"
|
||||||
|
"$php"
|
||||||
|
"$pulumi"
|
||||||
|
"$purescript"
|
||||||
|
"$python"
|
||||||
|
"$raku"
|
||||||
|
"$rlang"
|
||||||
|
"$red"
|
||||||
|
"$ruby"
|
||||||
|
"$rust"
|
||||||
|
"$scala"
|
||||||
|
"$swift"
|
||||||
|
"$terraform"
|
||||||
|
"$vlang"
|
||||||
|
"$vagrant"
|
||||||
|
"$zig"
|
||||||
|
"$buf"
|
||||||
|
"$nix_shell"
|
||||||
|
"$conda"
|
||||||
|
"$meson"
|
||||||
|
"$spack"
|
||||||
|
"$memory_usage"
|
||||||
|
"$aws"
|
||||||
|
"$gcloud"
|
||||||
|
"$openstack"
|
||||||
|
"$azure"
|
||||||
|
"$env_var"
|
||||||
|
"$crystal"
|
||||||
|
"$custom"
|
||||||
|
"$sudo"
|
||||||
|
"$cmd_duration"
|
||||||
|
"$line_break"
|
||||||
|
"$jobs"
|
||||||
|
"$battery"
|
||||||
|
"$time"
|
||||||
|
"$status"
|
||||||
|
"$os"
|
||||||
|
"$container"
|
||||||
|
"$shell"
|
||||||
|
"$character"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
30
modules/home/tmux.nix
Normal file
30
modules/home/tmux.nix
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
{ pkgs, config, lib, ... }: {
|
||||||
|
|
||||||
|
programs.tmux = {
|
||||||
|
enable = true;
|
||||||
|
|
||||||
|
clock24 = true;
|
||||||
|
shortcut = "a";
|
||||||
|
mouse = true;
|
||||||
|
historyLimit = 30000;
|
||||||
|
|
||||||
|
extraConfig = ''
|
||||||
|
set -g status-position top
|
||||||
|
setw -g mode-keys vi
|
||||||
|
|
||||||
|
bind . split-window -h
|
||||||
|
bind - split-window -v
|
||||||
|
|
||||||
|
set -g base-index 1
|
||||||
|
|
||||||
|
set -g status-bg black
|
||||||
|
set -g status-fg green
|
||||||
|
|
||||||
|
set-option -sg escape-time 10
|
||||||
|
set-option -g focus-events on
|
||||||
|
set-option -sa terminal-features ',kitty:RGB'
|
||||||
|
'';
|
||||||
|
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue