Compare commits

...

2 Commits

Author SHA1 Message Date
Alexandre LUCAZEAU 4ec119d7c6 Merge branch 'main' of git.atlanticaweb.fr:alexandre/nixos-config 2023-07-29 11:58:19 +02:00
Alexandre LUCAZEAU 95e68c60f8 ADD starship config file 2023-07-29 11:56:49 +02:00
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
./bat.nix
# ./redshift.nix
# ../../../modules/neovim.nix
../../../modules/neovim.nix
../../../modules/rust.nix
../../../modules/tmux.nix
../../../modules/git.nix

View File

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

View File

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

View File

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

View File

@ -4,7 +4,7 @@
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
dmenu
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;
vimAlias = true;
vimdiffAlias = true;
plugins = with pkgs.vimPlugins;[
nvim-lspconfig
nvim-treesitter.withAllGrammars
plenary-nvim
gruvbox-material
mini-nvim
];
# plugins = with pkgs.vimPlugins;[
# nvim-lspconfig
# nvim-treesitter.withAllGrammars
# plenary-nvim
# gruvbox-material
# mini-nvim
# ];
};
}