1 { pkgs, lib, config, ... }:
2 let inherit (lib) types;
7 ./defaults/predictable-interface-names.nix
11 #binaryCaches = lib.mkForce [];
14 # Use gc.automatic to keep disk space under control.
18 options = "--delete-older-than 30d";
21 "nixpkgs=${pkgs.path}"
29 packageOverrides = pkgs: {
30 postfix = pkgs.postfix.override {
36 #overlays = import ../overlays.nix;
39 documentation.nixos = {
40 enable = false; # NOTE: useless on a server, and CPU intensive.
43 # Clean /tmp automatically on boot.
44 boot.cleanTmpDir = true;
47 timeZone = "Europe/Paris";
51 consoleFont = "Lat2-Terminus16";
53 defaultLocale = "fr_FR.UTF-8";
59 passwordAuthentication = false;
71 systemPackages = with pkgs; [
90 etc."inputrc".text = lib.readFile defaults/readline/inputrc;
95 interactiveShellInit = ''
96 bind '"\e[A":history-search-backward'
97 bind '"\e[B":history-search-forward'
99 # Ignore duplicate commands, ignore commands starting with a space
100 export HISTCONTROL=erasedups:ignorespace
101 export HISTSIZE=42000
103 # Append to the history instead of overwriting (good for multiple connections)
110 ls = "ls --color=tty";
111 mem = "ps -e -orss=,user=,args= | sort -b -k1,1n";
114 s-u="systemctl --user";
116 nixos-clean="sudo nix-collect-garbage -d";
117 nixos-history="sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
118 nixos-rollback="sudo nixos-rebuild switch --rollback";
119 nixos-update="sudo nix-channel --update";
120 nixos-upgrade="sudo nixos-rebuild switch";
121 nixos-upstream="sudo nix-channel --list";