ADD starship config file

main
Alexandre LUCAZEAU 2023-07-29 11:56:49 +02:00
parent 086d9760bc
commit 95e68c60f8
8 changed files with 95 additions and 16 deletions

View File

@ -1 +0,0 @@
/home/alexandre/git/nixos-config/hosts/dell-5590/home-manager/

View File

@ -10,7 +10,7 @@
./dunst.nix ./dunst.nix
./bat.nix ./bat.nix
# ./redshift.nix # ./redshift.nix
# ../../../modules/neovim.nix ../../../modules/neovim.nix
../../../modules/rust.nix ../../../modules/rust.nix
../../../modules/tmux.nix ../../../modules/tmux.nix
../../../modules/git.nix ../../../modules/git.nix

View File

@ -3,7 +3,6 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
firefox firefox
thunderbird thunderbird
vim
jq jq
nextcloud-client nextcloud-client
libreoffice libreoffice
@ -44,7 +43,6 @@
zola zola
exa exa
bat bat
vimPlugins.vim-markdown-composer
python3 python3
mtr mtr
powertop powertop
@ -68,7 +66,6 @@
graphviz graphviz
evince evince
kdeconnect kdeconnect
neovim
]; ];
nixpkgs.config.permittedInsecurePackages = [ nixpkgs.config.permittedInsecurePackages = [
"ferdi-5.8.1" "ferdi-5.8.1"

View File

@ -3,7 +3,7 @@
#config ={ #config ={
home.sessionVariables = { home.sessionVariables = {
LESS = "--quit-if-one-screen --RAW-CONTROL-CHARS"; LESS = "--quit-if-one-screen --RAW-CONTROL-CHARS";
EDITOR = "vim"; EDITOR = "nvim";
TERMINAL = "xfce4-terminal"; TERMINAL = "xfce4-terminal";
BROWSER = "firefox"; BROWSER = "firefox";
PRIVATE_BROWSER = "firefox -private"; PRIVATE_BROWSER = "firefox -private";

View File

@ -24,13 +24,15 @@
}; };
programs = { programs = {
zsh.enable = true;
htop = { htop = {
enable = true; enable = true;
settings.show_cpu_temperature = 1; settings.show_cpu_temperature = 1;
}; };
fish = { fish = {
enable = true; enable = true;
interactiveShellInit = ''
set -gx EDITOR nvim
'';
shellAliases = { shellAliases = {
ll = "ls -l"; ll = "ls -l";
ls = "lsd"; ls = "lsd";
@ -176,7 +178,7 @@ nix.settings.auto-optimise-store = true;
system.stateVersion = "21.05"; # Did you read the comment? system.stateVersion = "21.05"; # Did you read the comment?
environment.variables = { environment.variables = {
EDITOR = "vim"; EDITOR = "nvim";
BROWSER = "firefox"; BROWSER = "firefox";
LESS = "--quit-if-one-screen --RAW-CONTROL-CHARS"; LESS = "--quit-if-one-screen --RAW-CONTROL-CHARS";
TERMINAL = "xfce4-terminal"; TERMINAL = "xfce4-terminal";

View File

@ -4,7 +4,7 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
wget lshw openssh bc unzip zip file which vim gnumake tmux wget lshw openssh bc unzip zip file which gnumake tmux
gitAndTools.gitFull gitAndTools.gitFull
dmenu dmenu
pkgs.dconf pkgs.dconf

View File

@ -0,0 +1,81 @@
# ~/.config/starship.toml
[battery]
full_symbol = "🔋"
charging_symbol = "🔌"
discharging_symbol = "⚡"
[[battery.display]]
threshold = 30
style = "bold red"
[character]
error_symbol = "[✖](bold red) "
[cmd_duration]
min_time = 10_000 # Show command duration over 10,000 milliseconds (=10 sec)
format = " took [$duration]($style)"
[directory]
truncation_length = 5
format = "[$path]($style)[$lock_symbol]($lock_style) "
[git_branch]
format = " [$symbol$branch]($style) "
symbol = "🍣 "
style = "bold yellow"
[git_commit]
commit_hash_length = 8
style = "bold white"
[git_state]
format = '[\($state( $progress_current of $progress_total)\)]($style) '
[git_status]
conflicted = "⚔️ "
ahead = "🏎️ 💨 ×${count}"
behind = "🐢 ×${count}"
diverged = "🔱 🏎️ 💨 ×${ahead_count} 🐢 ×${behind_count}"
untracked = "🛤️ ×${count}"
stashed = "📦 "
modified = "📝 ×${count}"
staged = "🗃️ ×${count}"
renamed = "📛 ×${count}"
deleted = "🗑️ ×${count}"
style = "bright-white"
format = "$all_status$ahead_behind"
[hostname]
ssh_only = false
format = "<[$hostname]($style)>"
trim_at = "-"
style = "bold dimmed white"
disabled = false
[memory_usage]
format = "$symbol[${ram}( | ${swap})]($style) "
threshold = 70
style = "bold dimmed white"
disabled = false
[package]
disabled = true
[python]
format = "[$symbol$version]($style) "
style = "bold green"
[rust]
format = "[$symbol$version]($style) "
style = "bold green"
[time]
time_format = "%T"
format = "🕙 $time($style) "
style = "bright-white"
disabled = false
[username]
style_user = "bold dimmed blue"
show_always = false

View File

@ -4,12 +4,12 @@ programs.neovim = {
viAlias = true; viAlias = true;
vimAlias = true; vimAlias = true;
vimdiffAlias = true; vimdiffAlias = true;
plugins = with pkgs.vimPlugins;[ # plugins = with pkgs.vimPlugins;[
nvim-lspconfig # nvim-lspconfig
nvim-treesitter.withAllGrammars # nvim-treesitter.withAllGrammars
plenary-nvim # plenary-nvim
gruvbox-material # gruvbox-material
mini-nvim # mini-nvim
]; # ];
}; };
} }