1 { pkgs, lib, config, ... }:
2 let inherit (lib) types;
7 ./defaults/predictable-interface-names.nix
11 autoOptimiseStore = true;
14 # Use gc.automatic to keep disk space under control.
18 options = "--delete-older-than 30d";
26 packageOverrides = pkgs: {
27 postfix = pkgs.postfix.override {
33 #overlays = import ../overlays.nix;
36 documentation.nixos = {
37 enable = false; # NOTE: useless on a server, and CPU intensive.
40 # Clean /tmp automatically on boot.
41 boot.cleanTmpDir = true;
44 timeZone = "Europe/Paris";
48 consoleFont = "Lat2-Terminus16";
50 defaultLocale = "fr_FR.UTF-8";
56 passwordAuthentication = false;
68 systemPackages = with pkgs; [
87 etc."inputrc".text = lib.readFile defaults/readline/inputrc;
92 interactiveShellInit = ''
93 bind '"\e[A":history-search-backward'
94 bind '"\e[B":history-search-forward'
96 # Ignore duplicate commands, ignore commands starting with a space
97 export HISTCONTROL=erasedups:ignorespace
100 # Append to the history instead of overwriting (good for multiple connections)
107 ls = "ls --color=tty";
108 mem = "ps -e -orss=,user=,args= | sort -b -k1,1n";
111 s-u="systemctl --user";
113 nixos-clean="sudo nix-collect-garbage -d";
114 nixos-history="sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
115 nixos-rollback="sudo nixos-rebuild switch --rollback";
116 nixos-update="sudo nix-channel --update";
117 nixos-upgrade="sudo nixos-rebuild switch";
118 nixos-upstream="sudo nix-channel --list";