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 this machine, and CPU intensive.
41 timeZone = "Europe/Paris";
45 consoleFont = "Lat2-Terminus16";
47 defaultLocale = "fr_FR.UTF-8";
64 systemPackages = with pkgs; [
83 etc."inputrc".text = lib.readFile defaults/readline/inputrc;
88 interactiveShellInit = ''
89 bind '"\e[A":history-search-backward'
90 bind '"\e[B":history-search-forward'
92 # Ignore duplicate commands, ignore commands starting with a space
93 export HISTCONTROL=erasedups:ignorespace
96 # Append to the history instead of overwriting (good for multiple connections)
103 ls = "ls --color=tty";
104 mem = "ps -e -orss=,user=,args= | sort -b -k1,1n";
107 s-u="systemctl --user";
109 nixos-clean="sudo nix-collect-garbage -d";
110 nixos-history="sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
111 nixos-rollback="sudo nixos-rebuild switch --rollback";
112 nixos-update="sudo nix-channel --update";
113 nixos-upgrade="sudo nixos-rebuild switch";
114 nixos-upstream="sudo nix-channel --list";