1 { config, pkgs, lib, inputs, hostName, ... }:
2 let inherit (config.users) users; in
5 ../profiles/dnscrypt-proxy2.nix
11 home-manager.users.julm = {
12 imports = [ ../homes/julm.nix ];
14 host.hardware = ["ThinkPad" "X201"];
16 systemd.services.home-manager-julm.postStart = ''
17 ${pkgs.nix}/bin/nix-env --delete-generations +1 --profile /nix/var/nix/profiles/per-user/julm/home-manager
19 users.mutableUsers = false;
23 # Put the hashedPassword in /nix/store, but it will also be in /etc/passwd
24 # which is already world readable.
25 hashedPassword = lib.readFile ../secrets/julm/hashedPassword;
37 # If created, zfs-mount.service would require:
38 # zfs set overlay=yes ${hostName}/home
44 auto-optimise-store = true
49 options = "--delete-older-than 7d";
52 "nixpkgs=/etc/nixpkgs"
53 "nixpkgs-overlays=/etc/nixpkgs-overlays/overlays.nix"
55 trustedUsers = [ users.julm.name ];
57 environment.etc."nixpkgs".source = pkgs.path;
58 environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
63 documentation.nixos.enable = true;
64 time.timeZone = "Europe/Paris";
65 i18n.defaultLocale = "fr_FR.UTF-8";
66 console.font = "Lat2-Terminus16";
67 console.keyMap = "fr";
71 domain = "localdomain";
72 search = [ "sourcephile.fr" ];
79 #backend = "wpa_supplicant";
89 hardware.pulseaudio.enable = true;
90 hardware.sane.enable = true;
91 hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
93 environment.variables = {
96 SYSTEMD_LESS = "FKMRX";
101 interactiveShellInit = ''
102 bind '"\e[A":history-search-backward'
103 bind '"\e[B":history-search-forward'
105 # Ignore duplicate commands, ignore commands starting with a space
106 export HISTCONTROL=erasedups:ignorespace
107 export HISTSIZE=42000
108 # Append to the history instead of overwriting (good for multiple connections)
112 mkcd () { mkdir -p "$1"; cd "$1"; }
115 then sudo tee /proc/acpi/ibm/fan <<<"level $1"
116 else grep '^\(level\|speed\):' /proc/acpi/ibm/fan
123 grep = "grep --color";
126 ls = "ls --color=tty";
127 mem = "ps -e -orss=,user=,args= | sort -b -k1,1n";
130 st="sudo systemctl status";
131 u="systemctl --user";
132 j="sudo journalctl -u";
133 jb="sudo journalctl -b";
135 nix-history="sudo nix-env --list-generations --profile /nix/var/nix/profiles/system";
137 sshfs = "sshfs -o ServerAliveInterval=15 -o reconnect -f";
150 packages = [ pkgs.gnome3.dconf ];
158 MaxRetentionSec=1month
172 # Allow members of the "adbusers" group to mount Android devices via MTP
173 pkgs.android-udev-rules
179 xkbOptions = "eurosign:e";
180 libinput.enable = true;
183 # Let the session be generated by home-manager
184 { name = "home-manager";
186 ${pkgs.runtimeShell} $HOME/.hm-xsession &
193 defaultSession = "home-manager";
194 #defaultSession = "none+xmonad";
197 user = users.julm.name;
203 # This value determines the NixOS release with which your system is to be
204 # compatible, in order to avoid breaking some software such as database
205 # servers. You should change this only after NixOS release notes say you should.
206 system.stateVersion = "20.09"; # Did you read the comment?