parent
6f4981f8d3
commit
7da47f0705
|
@ -332,7 +332,6 @@ in
|
||||||
pkgs.kdePackages.neochat
|
pkgs.kdePackages.neochat
|
||||||
nixos-install-tools
|
nixos-install-tools
|
||||||
nmap
|
nmap
|
||||||
nushell
|
|
||||||
nvme-cli
|
nvme-cli
|
||||||
procmail
|
procmail
|
||||||
okteta
|
okteta
|
||||||
|
@ -499,8 +498,12 @@ in
|
||||||
enableMail = false;
|
enableMail = false;
|
||||||
};
|
};
|
||||||
|
|
||||||
# add nushell and zsh to allowed shells
|
# use ZSH per default
|
||||||
environment.shells = with pkgs; [ nushell zsh ];
|
programs.zsh.enable = true;
|
||||||
|
environment.shells = with pkgs; [ zsh ];
|
||||||
|
|
||||||
|
# needed for the ZSH completion
|
||||||
|
environment.pathsToLink = [ "/share/zsh" ];
|
||||||
|
|
||||||
# use micro as default terminal editor
|
# use micro as default terminal editor
|
||||||
environment.variables.EDITOR = "micro";
|
environment.variables.EDITOR = "micro";
|
||||||
|
|
|
@ -2,19 +2,31 @@
|
||||||
# initial version
|
# initial version
|
||||||
home.stateVersion = "22.11";
|
home.stateVersion = "22.11";
|
||||||
|
|
||||||
# my nushell config
|
# ZSH with good config
|
||||||
programs.nushell = {
|
programs.zsh = {
|
||||||
# we use nushell
|
# ZSH on
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
# shell config
|
# we want completion
|
||||||
extraConfig = ''
|
enableCompletion = true;
|
||||||
$env.config = {
|
|
||||||
table: {
|
# we want suggestions of already typed stuff
|
||||||
mode: none
|
autosuggestion.enable = true;
|
||||||
}
|
|
||||||
}
|
# we want nice command highlighting
|
||||||
'';
|
syntaxHighlighting.enable = true;
|
||||||
|
|
||||||
|
# better history
|
||||||
|
history = {
|
||||||
|
# save timestamps
|
||||||
|
extended = true;
|
||||||
|
|
||||||
|
# kill dupes over full history
|
||||||
|
ignoreAllDups = true;
|
||||||
|
|
||||||
|
# don't share history between sessions
|
||||||
|
share = false;
|
||||||
|
};
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
|
@ -49,7 +61,7 @@
|
||||||
# https://draculatheme.com/starship
|
# https://draculatheme.com/starship
|
||||||
programs.starship = {
|
programs.starship = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableZshIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
command_timeout = 10000;
|
command_timeout = 10000;
|
||||||
aws.style = "bold #ffb86c";
|
aws.style = "bold #ffb86c";
|
||||||
|
@ -76,20 +88,37 @@
|
||||||
# nice cd
|
# nice cd
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableZshIntegration = true;
|
||||||
options = [ "--cmd" "cd" ];
|
options = [ "--cmd" "cd" ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# integrate fuzzy search
|
||||||
|
programs.fzf = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
# better completion
|
# better completion
|
||||||
programs.carapace = {
|
programs.carapace = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
# better ls, adds la and Co. aliases, too
|
# better ls, adds la and Co. aliases, too
|
||||||
programs.eza = {
|
programs.eza = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableNushellIntegration = true;
|
enableZshIntegration = true;
|
||||||
|
};
|
||||||
|
|
||||||
|
# tmux replacement
|
||||||
|
programs.zellij = {
|
||||||
|
enable = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
|
settings = {
|
||||||
|
theme = "catppuccin-mocha";
|
||||||
|
pane_frames = false;
|
||||||
|
on_force_close = "quit";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
# better cat
|
# better cat
|
||||||
|
|
|
@ -14,8 +14,8 @@ in
|
||||||
# all users and passwords are defined here
|
# all users and passwords are defined here
|
||||||
mutableUsers = false;
|
mutableUsers = false;
|
||||||
|
|
||||||
# default shell is nushell
|
# default shell is ZSH
|
||||||
defaultUserShell = pkgs.nushell;
|
defaultUserShell = pkgs.zsh;
|
||||||
|
|
||||||
#
|
#
|
||||||
# administrator
|
# administrator
|
||||||
|
|
Loading…
Reference in a new issue