nixos-config/systems/common-cli.nix

121 lines
2.1 KiB
Nix
Raw Normal View History

2018-09-20 12:22:05 +02:00
{ config, pkgs, ... }:
{
time.timeZone = "Europe/Paris";
environment.systemPackages = with pkgs; [
# Editeurs
2020-04-16 09:14:37 +02:00
(neovim.override {
viAlias = true;
vimAlias = true;
configure = {
customRC = ''
set shiftwidth=2
set softtabstop=2
set expandtab
set background=dark
'';
packages.myVimPackage = with pkgs.vimPlugins; {
start = [
vim-startify airline sensible
polyglot ale fugitive
];
opt = [ ];
};
};
})
2018-09-20 12:22:05 +02:00
# Gestionnaires de version
gitFull
tig
2019-07-31 13:53:35 +02:00
gitAndTools.hub
2019-10-22 00:34:22 +02:00
quilt
2018-09-20 12:22:05 +02:00
# Gestion de paquets
nix-prefetch-scripts
nox
nix-index
# Système
smartmontools
htop
lshw
usbutils
# Réseau
telnet
rclone
lftp
wireguard
nfsUtils
nmap
# Divers
fzf
file
ncdu
youtube-dl
tldr
2019-09-21 21:57:55 +02:00
starship
2018-09-20 12:22:05 +02:00
# Audio
beets
# Outils
borgbackup
2019-01-24 18:56:56 +01:00
binutils
2019-10-04 22:01:49 +02:00
bat
2019-10-06 18:01:20 +02:00
molly-guard
2018-09-20 12:22:05 +02:00
# Développement
openssl
];
users.defaultUserShell = pkgs.zsh;
2019-09-21 21:57:55 +02:00
programs = {
tmux = {
enable = true;
clock24 = true;
};
zsh = {
2018-09-20 12:22:05 +02:00
enable = true;
2019-09-21 21:57:55 +02:00
autosuggestions.enable = true;
enableCompletion = true;
syntaxHighlighting.enable = true;
interactiveShellInit = ''
source "$(${pkgs.fzf}/bin/fzf-share)/key-bindings.zsh"
eval "$(starship init zsh)"
'';
ohMyZsh = {
enable = true;
plugins = [ "git" "colored-man-pages" "command-not-found" "extract" "nix" ];
customPkgs = with pkgs;[
nix-zsh-completions
];
};
2018-09-20 12:22:05 +02:00
};
2019-09-21 21:57:55 +02:00
bash.interactiveShellInit = ''
eval "$(starship init bash)"
'';
2018-09-20 12:22:05 +02:00
};
2019-09-21 21:57:55 +02:00
environment.variables = let
starshipConfToml =
pkgs.writeText "starship.toml" ''
[[battery.display]]
threshold = 50
'';
in {
2018-11-11 11:13:45 +01:00
EDITOR = "nvim";
2019-09-21 21:57:55 +02:00
STARSHIP_CONFIG = "${starshipConfToml}";
2018-11-11 11:13:45 +01:00
};
2018-09-20 12:22:05 +02:00
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 15d";
systemd.timers.nix-gc.timerConfig.Persistent = true;
2018-09-20 12:22:05 +02:00
}