11 ../nixos/profiles/builder.nix
12 ../nixos/profiles/debug.nix
13 ../nixos/profiles/graphical.nix
14 ../nixos/profiles/irssi.nix
15 ../nixos/profiles/lang-fr.nix
16 ../nixos/profiles/laptop.nix
17 ../nixos/profiles/printing.nix
18 ../nixos/profiles/radio.nix
19 ../nixos/profiles/tor.nix
20 ../nixos/profiles/bluetooth.nix
21 ../nixos/profiles/home.nix
22 ../nixos/profiles/dolphin.nix
27 nan2gua1/networking.nix
30 # Lower kernel's security for better performances
31 security.kernel.mitigations = "off";
33 home-manager.users.julm = {
34 imports = [ ../homes/julm.nix ];
37 openssh.authorizedKeys.keys = map lib.readFile [
38 # For nix -L run .#$(hostname).switch
39 ../users/julm/ssh/nan2gua1.pub
40 # SecurityToDo: remove
41 ../users/julm/ssh/blackberry.pub
47 # Put the hashedPassword in /nix/store,
48 # though /etc/shadow is not world readable...
49 # printf %s $(mkpasswd -m md5crypt)
50 hashedPassword = lib.readFile pumpkin/users/julm/login/hashedPassword.clear;
56 "plugdev" # For rtl-sdr
64 config.services.davfs2.davGroup
65 config.services.kubo.group
68 # If created, zfs-mount.service would require:
69 # zfs set overlay=yes ${hostName}/home
71 openssh.authorizedKeys.keys = map lib.readFile [
72 ../users/julm/ssh/losurdo.pub
79 #"http://nix-localcache.losurdo.sp"
80 #"file:///mnt/off4/julm/nix?priority=10&trusted=true"
81 #"ssh://nix-ssh@losurdo.sp?priority=30"
83 trusted-public-keys = map lib.readFile [
84 #../users/nix/ssh/losurdo.pub
88 #environment.etc."nixpkgs".source = pkgs.path;
89 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
91 nix.settings.allowed-users = [
92 #config.users.users."nix-ssh".name
96 keys = map lib.readFile [
97 ../users/julm/ssh/losurdo.pub
98 ../users/julm/ssh/pumpkin.pub
99 ../users/julm/ssh/nan2gua1.pub
100 ../users/sevy/ssh/patate.pub
104 environment.systemPackages = [
105 #pkgs.riseup-vpn # Can't be installed by home-manager because it needs to install policy-kit rules
108 boot.extraModulePackages = [
109 #config.boot.kernelPackages.v4l2loopback
112 programs.adb.enable = true;
114 programs.fuse.userAllowOther = true;
116 services.davfs2.enable = true;
118 systemd.automounts = [
120 where = "/mnt/aubergine";
121 automountConfig.TimeoutIdleSec = "5 min";
126 # Use the user's gpg-agent session to query
127 # for the password of the SSH key when auto-mounting.
128 sshAsUser = pkgs.writeScript "sshAsUser" ''
130 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
131 ${pkgs.openssh}/bin/ssh "$@"
138 "exec" # Override "user"'s noexec
142 "ssh_command=${sshAsUser}\\040julm"
145 "x-systemd.automount"
146 #"Compression=yes" # YMMV
147 # Disconnect approximately 2*15=30 seconds after a network failure
148 "ServerAliveCountMax=1"
149 "ServerAliveInterval=15"
156 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
161 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
166 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
171 "/mnt/ilico/severine" = {
172 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
176 conf = pkgs.writeText "davfs2.conf" ''
177 backup_dir /home/julm/.local/share/davfs2/ilico/severine
178 secrets /home/julm/.davfs2/secrets
190 "x-systemd.automount"
191 "x-systemd.device-timeout=1m"
192 "x-systemd.idle-timeout=1m"
193 "x-systemd.mount-timeout=10s"
199 services.udev.packages = [
200 # Allow the console user access the Yubikey USB device node,
201 # needed for challenge/response to work correctly.
202 pkgs.yubikey-personalization
207 layout = "fr,us(altgr-intl)";
211 # Let the session be generated by home-manager
213 name = "home-manager";
215 ${pkgs.runtimeShell} $HOME/.hm-xsession &
223 services.displayManager = {
224 defaultSession = "home-manager";
225 #defaultSession = "none+xmonad";
226 #defaultSession = "mate";
227 #defaultSession = "cinnamon";
229 user = config.users.users.julm.name;
233 nixpkgs.config.allowUnfreePredicate =
235 builtins.elem (lib.getName pkg) [
261 # This value determines the NixOS release with which your system is to be
262 # compatible, in order to avoid breaking some software such as database
263 # servers. You should change this only after NixOS release notes say you should.
264 system.stateVersion = "25.05"; # Did you read the comment?