nixos-config/systems/common.nix

93 lines
1.5 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)
];
nixpkgs.config.allowUnfree = true;
environment.systemPackages = with pkgs; [
# Editeurs
neovim
# Gestionnaires de version
gitFull
tig
# 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
# Audio
beets
# Outils
borgbackup
# Développement
openssl
];
programs.tmux = {
enable = true;
clock24 = true;
};
users.defaultUserShell = pkgs.zsh;
programs.zsh = {
enable = true;
2018-10-22 19:16:50 +02:00
autosuggestions.enable = true;
2018-09-20 12:22:05 +02:00
enableCompletion = true;
syntaxHighlighting.enable = true;
interactiveShellInit = ''
source "$(${pkgs.fzf}/bin/fzf-share)/key-bindings.zsh"
'';
ohMyZsh = {
enable = true;
2018-11-10 15:25:21 +01:00
plugins = [ "git" "colored-man-pages" "command-not-found" "extract" "nix" ];
customPkgs = with pkgs;[
spaceship-prompt
nix-zsh-completions
];
theme = "spaceship";
2018-09-20 12:22:05 +02:00
};
};
2018-11-11 11:13:45 +01:00
environment.variables = {
EDITOR = "nvim";
SPACESHIP_TIME_SHOW = "true";
SPACESHIP_BATTERY_THRESHOLD = "50";
SPACESHIP_EXIT_CODE_SHOW = "true";
};
2018-09-20 12:22:05 +02:00
nix.gc.automatic = true;
nix.gc.options = "--delete-older-than 15d";
}