so much!!!

This commit is contained in:
CherryKitten 2024-03-24 19:02:32 +01:00
parent 3e3d076c76
commit f78a249d2a
Signed by: sammy
GPG key ID: 98D8F75FB0658276
7 changed files with 204 additions and 25 deletions

View file

@ -1,14 +1,9 @@
{ pkgs
, config
, lib
, ...
}: {
imports = [ ./fish ./nvim ];
{ pkgs, ... }: {
imports = [ ./fish ./nvim ./tmux.nix ./starship.nix ];
home.packages = with pkgs; [
bat
lsd
gnupg
tmux
colmena
];
@ -22,6 +17,17 @@
core = { editor = "nvim"; };
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";
};
};
};
}

View file

@ -1,8 +1,4 @@
{ pkgs
, config
, lib
, ...
}: {
{ pkgs, config, lib, ... }: {
programs.fish = {
enable = true;
};

View file

@ -10,6 +10,9 @@
stylua
# Telescope
ripgrep
ansible-language-server
nil
nixpkgs-fmt
];
plugins = with pkgs.vimPlugins; [

View file

@ -1,4 +1,7 @@
local logo = [[
return {
"nvimdev/dashboard-nvim",
opts = function()
local logo = [[
Nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanya
@ -8,9 +11,9 @@ Nyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanyanya
]]
logo = string.rep("\n", 8) .. logo .. "\n\n"
logo = string.rep("\n", 8) .. logo .. "\n\n"
require("dashboard").setup({
require("dashboard").setup({
theme = "doom",
hide = {
statusline = false,
@ -29,4 +32,6 @@ require("dashboard").setup({
},
footer = { "Meow!!!" }, --your footer
},
})
})
end,
}

View 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
View 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
View 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'
'';
};
}