1 { config, pkgs, lib, private, hostName, ... }:
4 ../nixos/profiles/dnscrypt-proxy2.nix
5 ../nixos/profiles/security.nix
6 ../nixos/profiles/wireguard/wg-intra.nix
13 home-manager.users.julm = {
14 imports = [ ../homes/julm.nix ];
15 host.hardware = [ "ThinkPad" "X201" ];
17 systemd.services.home-manager-julm.postStart = ''
18 ${pkgs.nix}/bin/nix-env --delete-generations +1 --profile /nix/var/nix/profiles/per-user/julm/home-manager
20 security.lockKernelModules = false;
21 users.mutableUsers = false;
25 # Put the hashedPassword in /nix/store, but it will also be in /etc/passwd
26 # which is already world readable.
27 hashedPassword = lib.readFile ../private/world/julm/hashedPassword;
37 config.services.davfs2.davGroup
40 # If created, zfs-mount.service would require:
41 # zfs set overlay=yes ${hostName}/home
47 secret-key-files = ${private}/${hostName}/nix/binary-cache/priv.pem
49 autoOptimiseStore = true;
52 gc.options = "--delete-older-than 7d";
53 nixPath = lib.mkForce [];
54 trustedUsers = [ config.users.users.julm.name ];
55 binaryCaches = [ "http://nix-localcache.losurdo.wg" ];
56 binaryCachePublicKeys = [ "losurdo.sourcephile.fr-1:XGeaIE2AA2mZskSZ5bIDrfx53q+TDDWJOUEpZDX7los=" ];
58 #environment.etc."nixpkgs".source = pkgs.path;
59 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
71 keys = [ (lib.readFile ../private/world/julm/losurdo/ssh.pub) ];
73 users.users.julm.openssh.authorizedKeys.keys = [
74 (lib.readFile ../private/world/julm/losurdo/ssh.pub)
77 time.timeZone = "Europe/Paris";
78 i18n.defaultLocale = "fr_FR.UTF-8";
79 console.font = "Lat2-Terminus16";
80 console.keyMap = "fr";
84 domain = "localdomain";
85 search = [ "sourcephile.fr" ];
92 #backend = "wpa_supplicant";
103 hardware.pulseaudio.enable = true;
104 hardware.sane.enable = true;
105 hardware.sane.extraBackends = [ pkgs.hplipWithPlugin ];
107 environment.variables = {
110 SYSTEMD_LESS = "FKMRX";
113 programs.bash.interactiveShellInit = ''
116 then sudo tee /proc/acpi/ibm/fan <<<"level $1"
117 else grep '^\(level\|speed\):' /proc/acpi/ibm/fan
122 programs.dconf.enable = true;
123 programs.mtr.enable = true;
128 openFirewall = false;
138 fileSystems."/home/julm/mnt/ilico/severine" = {
139 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
142 let conf = pkgs.writeText "davfs2.conf" ''
143 backup_dir /home/julm/documents/backup/ilico/severine
144 cache_dir /home/julm/.cache/davfs2/ilico/severine
146 [ "conf=${conf}" "user" "noexec" "nosuid" "noauto" ]; # "x-systemd.automount"
149 packages = [ pkgs.gnome3.dconf ];
151 services.gvfs.enable = true;
154 defaultMode = "online";
157 localDiscovery = false;
159 Datastore.StorageMax = "10GB";
160 Discovery.MDNS.Enabled = false;
163 #Swarm.AddrFilters = null;
165 startWhenNeeded = true;
170 services.printing = {
179 # Allow members of the "adbusers" group to mount Android devices via MTP.
180 pkgs.android-udev-rules
181 # Allow the console user access the Yubikey USB device node,
182 # needed for challenge/response to work correctly.
183 pkgs.yubikey-personalization
189 xkbOptions = "eurosign:e";
190 libinput.enable = true;
193 # Let the session be generated by home-manager
194 { name = "home-manager";
196 ${pkgs.runtimeShell} $HOME/.hm-xsession &
203 defaultSession = "home-manager";
204 #defaultSession = "none+xmonad";
207 user = config.users.users.julm.name;
212 systemd.coredump.enable = true;
213 #environment.enableDebugInfo = true;
215 # This value determines the NixOS release with which your system is to be
216 # compatible, in order to avoid breaking some software such as database
217 # servers. You should change this only after NixOS release notes say you should.
218 system.stateVersion = "20.09"; # Did you read the comment?