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
26 nan2gua1/networking.nix
29 # Lower kernel's security for better performances
30 security.kernel.mitigations = "off";
32 home-manager.users.julm = {
33 imports = [ ../homes/julm.nix ];
36 openssh.authorizedKeys.keys = map lib.readFile [
37 # For nix -L run .#$(hostname).switch
38 ../users/julm/ssh/nan2gua1.pub
39 # SecurityToDo: remove
40 ../users/julm/ssh/blackberry.pub
46 # Put the hashedPassword in /nix/store,
47 # though /etc/shadow is not world readable...
48 # printf %s $(mkpasswd -m md5crypt)
49 hashedPassword = lib.readFile pumpkin/users/julm/login/hashedPassword.clear;
55 "plugdev" # For rtl-sdr
62 config.services.davfs2.davGroup
63 config.services.kubo.group
66 # If created, zfs-mount.service would require:
67 # zfs set overlay=yes ${hostName}/home
69 openssh.authorizedKeys.keys = map lib.readFile [
70 ../users/julm/ssh/losurdo.pub
77 #"http://nix-localcache.losurdo.sp"
78 #"file:///mnt/off4/julm/nix?priority=10&trusted=true"
79 #"ssh://nix-ssh@losurdo.sp?priority=30"
81 trusted-public-keys = map lib.readFile [
82 #../users/nix/ssh/losurdo.pub
86 #environment.etc."nixpkgs".source = pkgs.path;
87 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
89 nix.settings.allowed-users = [
90 #config.users.users."nix-ssh".name
94 keys = map lib.readFile [
95 ../users/julm/ssh/losurdo.pub
96 ../users/julm/ssh/pumpkin.pub
97 ../users/julm/ssh/nan2gua1.pub
98 ../users/sevy/ssh/patate.pub
102 environment.systemPackages = [
103 #pkgs.riseup-vpn # Can't be installed by home-manager because it needs to install policy-kit rules
106 boot.extraModulePackages = [
107 #config.boot.kernelPackages.v4l2loopback
110 programs.adb.enable = true;
112 programs.fuse.userAllowOther = true;
114 services.davfs2.enable = true;
116 systemd.automounts = [
118 where = "/mnt/aubergine";
119 automountConfig.TimeoutIdleSec = "5 min";
124 # Use the user's gpg-agent session to query
125 # for the password of the SSH key when auto-mounting.
126 sshAsUser = pkgs.writeScript "sshAsUser" ''
128 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
129 ${pkgs.openssh}/bin/ssh "$@"
136 "exec" # Override "user"'s noexec
140 "ssh_command=${sshAsUser}\\040julm"
143 "x-systemd.automount"
144 #"Compression=yes" # YMMV
145 # Disconnect approximately 2*15=30 seconds after a network failure
146 "ServerAliveCountMax=1"
147 "ServerAliveInterval=15"
154 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
159 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
164 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
169 "/mnt/ilico/severine" = {
170 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
174 conf = pkgs.writeText "davfs2.conf" ''
175 backup_dir /home/julm/.local/share/davfs2/ilico/severine
176 secrets /home/julm/.davfs2/secrets
188 "x-systemd.automount"
189 "x-systemd.device-timeout=1m"
190 "x-systemd.idle-timeout=1m"
191 "x-systemd.mount-timeout=10s"
197 services.udev.packages = [
198 # Allow the console user access the Yubikey USB device node,
199 # needed for challenge/response to work correctly.
200 pkgs.yubikey-personalization
205 layout = "fr,us(altgr-intl)";
209 # Let the session be generated by home-manager
211 name = "home-manager";
213 ${pkgs.runtimeShell} $HOME/.hm-xsession &
221 services.displayManager = {
222 defaultSession = "home-manager";
223 #defaultSession = "none+xmonad";
224 #defaultSession = "mate";
225 #defaultSession = "cinnamon";
227 user = config.users.users.julm.name;
231 nixpkgs.config.allowUnfreePredicate =
233 builtins.elem (lib.getName pkg) [
259 # This value determines the NixOS release with which your system is to be
260 # compatible, in order to avoid breaking some software such as database
261 # servers. You should change this only after NixOS release notes say you should.
262 system.stateVersion = "25.05"; # Did you read the comment?