refact(cli) : all zsh to home manager

This commit is contained in:
Florian Schmitt 2024-01-11 21:19:05 +03:00
parent daa0af78c0
commit 551cb398f5
3 changed files with 38 additions and 38 deletions

View file

@ -1,6 +1,6 @@
new_tab Tmux new_tab Terminal
layout tall layout tall
cd ~/Developpements/ launch --title Terminal --cwd=~/Developpements
#launch zsh -c tmux -f ~/.config/tmux/tmux.conf new-session -A -s Terminal #launch zsh -c tmux -f ~/.config/tmux/tmux.conf new-session -A -s Terminal
new_tab YesWiki Dev new_tab YesWiki Dev

View file

@ -2,6 +2,8 @@
{ lib, pkgs, ... }: { lib, pkgs, ... }:
{ {
programs.zsh.enable = true;
services = { services = {
mpd.enable = true; mpd.enable = true;
mpd.musicDirectory = "/home/mrflos/Musique"; mpd.musicDirectory = "/home/mrflos/Musique";
@ -16,41 +18,7 @@
} }
''; '';
}; };
programs = {
# mosh.enable = true;
# neovim = {
# enable = true;
# viAlias = true;
# vimAlias = true;
# };
ssh.startAgent = true;
starship = {
enable = true;
settings = with builtins; fromTOML (readFile ../dotfiles/starship/starship.toml);
};
zsh = {
enable = true;
autosuggestions.enable = true;
shellAliases = {
#tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new";
ls = "lsd --hyperlink=auto";
icat = "kitty +kitten icat";
nixedit = "vi /etc/nixos";
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc";
};
initExtra = ''
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
'';
#shellInit = "cd ~/Developpements;";
ohMyZsh = {
enable = true;
plugins = [ "git" "ssh-agent" ];
theme = "robbyrussell";
};
};
};
# List packages installed in system profile. To search, run: # List packages installed in system profile. To search, run:
# $ nix search wget # $ nix search wget

View file

@ -202,7 +202,39 @@ in {
profiles.default = { isDefault = true; }; profiles.default = { isDefault = true; };
}; };
zsh.enable = true; starship = {
enable = true;
settings = with builtins; fromTOML (readFile ../dotfiles/starship/starship.toml);
};
zsh = {
enable = true;
enableAutosuggestions = true;
enableCompletion = true;
shellAliases = {
#tmux = "tmux -f ~/.config/tmux/tmux.conf attach || tmux -f ~/.config/tmux/tmux.conf new";
ls = "lsd --hyperlink=auto";
icat = "kitty +kitten icat";
nixedit = "vi /etc/nixos";
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
nixclean = "sudo nix-env --delete-generations old --profile /nix/var/nix/profiles/system && sudo /nix/var/nix/profiles/system/bin/switch-to-configuration switch && sudo nix-store --gc";
};
initExtra = ''
plugins=(git ssh-agent)
export BUN_INSTALL="$HOME/.bun"
export PATH="$BUN_INSTALL/bin:$PATH"
'';
#shellInit = "cd ~/Developpements;";
#ohMyZsh = {
# enable = true;
# plugins = [ "git" "ssh-agent" ];
# theme = "robbyrussell";
#};
};
}; };
services.ssh-agent.enable = true;
}; };
} }