mrflos-nixos-config-fork/modules/console.nix

102 lines
1.9 KiB
Nix
Raw Normal View History

2023-04-14 20:51:52 +00:00
# cli programs should be available on servers and desktop
{ lib, pkgs, ... }:
{
2023-12-21 10:02:18 +00:00
services = {
mpd.enable = true;
mpd.musicDirectory = "/home/mrflos/Musique";
mpd.user = "mrflos";
mpd.group = "users";
#mpd.dataDir
mpd.startWhenNeeded = true;
mpd.extraConfig = ''
audio_output {
type "pulse"
name "mpd"
}
'';
};
2023-04-14 20:51:52 +00:00
programs = {
mosh.enable = true;
2023-12-21 13:02:24 +00:00
# neovim = {
# enable = true;
# viAlias = true;
# vimAlias = true;
# };
2023-04-14 20:51:52 +00:00
ssh.startAgent = true;
starship = {
enable = true;
settings = with builtins; fromTOML (readFile ../configs/starship.toml);
};
2023-04-14 20:51:52 +00:00
zsh = {
enable = true;
autosuggestions.enable = true;
shellAliases = {
2023-11-03 08:09:19 +00:00
ls = "lsd --hyperlink=auto";
icat = "kitty +kitten icat";
2023-11-29 06:50:21 +00:00
nixedit = "vi /etc/nixos";
2023-08-13 16:18:11 +00:00
nixupdate = "sudo nix-channel --update && sudo nixos-rebuild switch";
2023-04-14 20:51:52 +00: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 12:52:25 +00:00
shellInit = "cd ~/Developpements;";
2023-04-14 20:51:52 +00:00
ohMyZsh = {
enable = true;
2023-08-13 16:18:11 +00:00
plugins = [ "git" "ssh-agent" ];
2023-04-14 20:51:52 +00:00
theme = "robbyrussell";
};
};
};
# List packages installed in system profile. To search, run:
# $ nix search wget
environment.systemPackages = with pkgs; [
ansible
2023-04-14 20:51:52 +00:00
bat
btop
2023-04-14 20:51:52 +00:00
bitwarden-cli
2023-12-21 13:02:24 +00:00
btop
2023-12-21 10:02:18 +00:00
catnip
2023-04-14 20:51:52 +00:00
coreutils
curl
dnsutils
emacs-nox
fd
2023-04-14 20:51:52 +00:00
findutils
2023-11-29 06:50:21 +00:00
fzf
2023-04-14 20:51:52 +00:00
gnugrep
2023-08-13 16:18:11 +00:00
gnumake
2023-04-14 20:51:52 +00:00
gnupg
imagemagick
jq
git
glances
htop
2023-12-01 06:41:21 +00:00
lazygit
2023-11-03 08:09:19 +00:00
lsd
2023-04-14 20:51:52 +00:00
mc
micro
mosh
2023-12-21 10:02:18 +00:00
mpc-cli
mpd
2023-04-14 20:51:52 +00:00
neofetch
pandoc
pass
2023-06-19 12:52:25 +00:00
pciutils
pinentry
ripgrep
2023-12-01 06:41:21 +00:00
slides
2023-04-14 20:51:52 +00:00
starship
tmux
tree
unzip
2023-06-19 12:52:25 +00:00
usbutils
2023-04-14 20:51:52 +00:00
wget
2023-06-19 12:52:25 +00:00
whois
wirelesstools
yt-dlp
2023-11-29 06:50:21 +00:00
zellij
2023-04-14 20:51:52 +00:00
zola
zsh-autosuggestions
];
}