nixos-config/systems/common-cli.nix

106 lines
1.7 KiB
Nix
Raw Normal View History

2018-09-20 12:22:05 +02:00
{ config, pkgs, ... }:
{
time.timeZone = "Europe/Paris";
nixpkgs.overlays = [
(import ../overlays/sudo.nix)
(import ../overlays/neovim.nix)
];
environment.systemPackages = with pkgs; [
# Editeurs
neovim
# Gestionnaires de version
gitFull
tig
2019-07-31 13:53:35 +02:00
gitAndTools.hub
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
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
}