nixos-config/modules/console.nix

82 lines
1.6 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 = {
2023-11-03 11:09:19 +03:00
ls = "lsd --hyperlink=auto";
icat = "kitty +kitten icat";
2023-11-29 09:50:21 +03:00
nixedit = "vi /etc/nixos";
2023-08-13 19:18:11 +03:00
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
2023-04-14 23:51:52 +03:00
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;
2023-08-13 19:18:11 +03:00
plugins = [ "git" "ssh-agent" ];
2023-04-14 23:51:52 +03:00
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
2023-11-29 09:50:21 +03:00
fzf
2023-04-14 23:51:52 +03:00
gnugrep
2023-08-13 19:18:11 +03:00
gnumake
2023-04-14 23:51:52 +03:00
gnupg
imagemagick
jq
git
glances
htop
2023-12-01 09:41:21 +03:00
lazygit
2023-11-03 11:09:19 +03:00
lsd
2023-04-14 23:51:52 +03:00
mc
micro
mosh
mpd
2023-04-14 23:51:52 +03:00
neofetch
pandoc
pass
2023-06-19 15:52:25 +03:00
pciutils
pinentry
2023-12-01 09:41:21 +03:00
slides
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
yt-dlp
2023-11-29 09:50:21 +03:00
zellij
2023-04-14 23:51:52 +03:00
zola
zsh-autosuggestions
];
}