nixos-config/modules/console.nix

73 lines
1.4 KiB
Nix
Raw Normal View History

2023-04-14 23:51:52 +03:00
# cli programs should be available on servers and desktop
{ lib, pkgs, ... }:
{
programs = {
mosh.enable = true;
neovim = {
enable = true;
viAlias = true;
vimAlias = true;
};
ssh.startAgent = true;
starship = {
enable = true;
settings = with builtins; fromTOML (readFile ../configs/starship.toml);
};
2023-04-14 23:51:52 +03:00
zsh = {
enable = true;
autosuggestions.enable = true;
shellAliases = {
ls = "ls --hyperlink=auto";
nixedit = "codium /etc/nixos";
2023-04-14 23:51:52 +03:00
nixupdate = "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";
};
2023-06-19 15:52:25 +03:00
shellInit = "cd ~/Developpements;";
2023-04-14 23:51:52 +03:00
ohMyZsh = {
enable = true;
plugins = [ "git" ];
theme = "robbyrussell";
};
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
ansible
2023-04-14 23:51:52 +03:00
bat
bitwarden-cli
coreutils
curl
dnsutils
emacs-nox
findutils
gnugrep
gnupg
imagemagick
jq
git
glances
htop
mc
micro
mosh
neofetch
pandoc
pass
2023-06-19 15:52:25 +03:00
pciutils
pinentry
2023-04-14 23:51:52 +03:00
starship
tmux
tree
unzip
2023-06-19 15:52:25 +03:00
usbutils
2023-04-14 23:51:52 +03:00
wget
2023-06-19 15:52:25 +03:00
whois
wirelesstools
2023-04-14 23:51:52 +03:00
zola
zsh-autosuggestions
];
}