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 = ''
|
2022-12-30 15:08:20 +01:00
|
|
|
set tabstop=8
|
2021-10-14 13:01:23 +02:00
|
|
|
set shiftwidth=4
|
|
|
|
set softtabstop=0
|
2020-04-16 09:14:37 +02:00
|
|
|
set expandtab
|
2022-12-30 15:08:20 +01:00
|
|
|
set smarttab
|
2020-04-16 09:14:37 +02:00
|
|
|
set background=dark
|
2022-12-30 15:08:20 +01:00
|
|
|
set mouse=
|
2020-04-16 09:14:37 +02:00
|
|
|
'';
|
|
|
|
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
|
|
|
|
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
|
2022-05-18 19:43:52 +02:00
|
|
|
inetutils
|
2018-09-20 12:22:05 +02:00
|
|
|
rclone
|
|
|
|
lftp
|
2022-05-18 19:43:52 +02:00
|
|
|
nfs-utils
|
2018-09-20 12:22:05 +02:00
|
|
|
nmap
|
|
|
|
|
|
|
|
# Divers
|
|
|
|
fzf
|
|
|
|
file
|
|
|
|
ncdu
|
2024-07-14 16:14:58 +02:00
|
|
|
yt-dlp
|
2018-09-20 12:22:05 +02:00
|
|
|
tldr
|
2019-09-21 21:57:55 +02:00
|
|
|
starship
|
2018-09-20 12:22:05 +02:00
|
|
|
|
|
|
|
# Audio
|
2021-11-02 18:06:18 +01:00
|
|
|
beets
|
2018-09-20 12:22:05 +02:00
|
|
|
|
|
|
|
# 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
|
2021-10-14 13:01:23 +02:00
|
|
|
nix-template
|
2021-10-11 10:52:39 +02:00
|
|
|
lz4
|
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)"
|
|
|
|
'';
|
2024-08-12 10:06:12 +02:00
|
|
|
|
|
|
|
git.enable = true;
|
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";
|
2018-12-12 23:42:51 +01:00
|
|
|
systemd.timers.nix-gc.timerConfig.Persistent = true;
|
2018-09-20 12:22:05 +02:00
|
|
|
|
|
|
|
}
|