Regroupement configuration commune
This commit is contained in:
parent
01a7d09d27
commit
5f9a4d3f26
3 changed files with 86 additions and 91 deletions
|
@ -6,6 +6,7 @@
|
|||
|
||||
{
|
||||
imports = [
|
||||
../common.nix
|
||||
./hardware-configuration.nix
|
||||
./users.nix
|
||||
./services.nix
|
||||
|
@ -32,57 +33,13 @@
|
|||
hostId = "7e66e347";
|
||||
};
|
||||
|
||||
time.timeZone = "Europe/Paris";
|
||||
|
||||
nixpkgs.overlays = [
|
||||
(import ../../overlays/riot-web.nix)
|
||||
(import ../../overlays/sudo.nix)
|
||||
(import ../../overlays/neovim.nix)
|
||||
(import ../../overlays/site-max.nix)
|
||||
(import ../../overlays/site-musique.nix)
|
||||
(import ../../overlays/dogetipbot-telegram.nix)
|
||||
(import ../../overlays/unstable_pkgs.nix)
|
||||
];
|
||||
environment.systemPackages = with pkgs; [
|
||||
neovim
|
||||
git
|
||||
tmux
|
||||
ncdu
|
||||
beets
|
||||
rclone
|
||||
borgbackup
|
||||
bind
|
||||
tig
|
||||
openssl
|
||||
lftp
|
||||
nix-prefetch-scripts
|
||||
smartmontools
|
||||
htop
|
||||
telnet
|
||||
tldr
|
||||
fzf
|
||||
file
|
||||
];
|
||||
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
||||
users.defaultUserShell = pkgs.zsh;
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
enableAutosuggestions = true;
|
||||
enableCompletion = true;
|
||||
syntaxHighlighting.enable = true;
|
||||
interactiveShellInit = ''
|
||||
source "$(${pkgs.fzf}/bin/fzf-share)/key-bindings.zsh"
|
||||
'';
|
||||
ohMyZsh = {
|
||||
enable = true;
|
||||
plugins = [ "git" "colored-man-pages" "command-not-found" "extract" ];
|
||||
theme = "bureau";
|
||||
};
|
||||
};
|
||||
|
||||
environment.variables = { EDITOR = "nvim"; };
|
||||
|
||||
services.openssh = {
|
||||
enable = true;
|
||||
|
@ -101,8 +58,5 @@
|
|||
system.autoUpgrade.enable = true;
|
||||
systemd.services.nixos-upgrade.path = with pkgs; [ gzip gnutar xz.bin config.nix.package.out ];
|
||||
|
||||
nix.gc.automatic = true;
|
||||
nix.gc.options = "--delete-older-than 15d";
|
||||
|
||||
system.stateVersion = "18.03";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue