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
28 nan2gua1/postgresql.nix
32 # Lower kernel's security for better performances
33 security.kernel.mitigations = "off";
35 home-manager.users.julm = {
36 imports = [ ../homes/julm.nix ];
39 openssh.authorizedKeys.keys = map lib.readFile [
40 # For nix -L run .#$(hostname).switch
41 ../users/julm/ssh/nan2gua1.pub
42 # SecurityToDo: remove
43 ../users/julm/ssh/blackberry.pub
49 # Put the hashedPassword in /nix/store,
50 # though /etc/shadow is not world readable...
51 # printf %s $(mkpasswd -m md5crypt)
52 hashedPassword = lib.readFile pumpkin/users/julm/login/hashedPassword.clear;
58 "plugdev" # For rtl-sdr
66 config.services.davfs2.davGroup
67 config.services.kubo.group
70 # If created, zfs-mount.service would require:
71 # zfs set overlay=yes ${hostName}/home
73 openssh.authorizedKeys.keys = map lib.readFile [
74 ../users/julm/ssh/losurdo.pub
81 #"http://nix-localcache.losurdo.sp"
82 #"file:///mnt/off4/julm/nix?priority=10&trusted=true"
83 #"ssh://nix-ssh@losurdo.sp?priority=30"
85 trusted-public-keys = map lib.readFile [
86 #../users/nix/ssh/losurdo.pub
90 #environment.etc."nixpkgs".source = pkgs.path;
91 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
93 nix.settings.allowed-users = [
94 #config.users.users."nix-ssh".name
98 keys = map lib.readFile [
99 ../users/julm/ssh/losurdo.pub
100 ../users/julm/ssh/pumpkin.pub
101 ../users/julm/ssh/nan2gua1.pub
102 ../users/sevy/ssh/patate.pub
106 environment.systemPackages = [
107 #pkgs.riseup-vpn # Can't be installed by home-manager because it needs to install policy-kit rules
110 boot.extraModulePackages = [
111 #config.boot.kernelPackages.v4l2loopback
114 programs.adb.enable = true;
116 programs.fuse.userAllowOther = true;
118 services.davfs2.enable = true;
120 systemd.automounts = [
122 where = "/mnt/aubergine";
123 automountConfig.TimeoutIdleSec = "5 min";
128 # Use the user's gpg-agent session to query
129 # for the password of the SSH key when auto-mounting.
130 sshAsUser = pkgs.writeScript "sshAsUser" ''
132 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
133 ${pkgs.openssh}/bin/ssh "$@"
140 "exec" # Override "user"'s noexec
144 "ssh_command=${sshAsUser}\\040julm"
147 "x-systemd.automount"
148 #"Compression=yes" # YMMV
149 # Disconnect approximately 2*15=30 seconds after a network failure
150 "ServerAliveCountMax=1"
151 "ServerAliveInterval=15"
158 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
163 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
168 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
173 "/mnt/ilico/severine" = {
174 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
178 conf = pkgs.writeText "davfs2.conf" ''
179 backup_dir /home/julm/.local/share/davfs2/ilico/severine
180 secrets /home/julm/.davfs2/secrets
192 "x-systemd.automount"
193 "x-systemd.device-timeout=1m"
194 "x-systemd.idle-timeout=1m"
195 "x-systemd.mount-timeout=10s"
201 services.udev.packages = [
202 # Allow the console user access the Yubikey USB device node,
203 # needed for challenge/response to work correctly.
204 pkgs.yubikey-personalization
209 layout = "fr,us(altgr-intl)";
213 # Let the session be generated by home-manager
215 name = "home-manager";
217 ${pkgs.runtimeShell} $HOME/.hm-xsession &
225 services.displayManager = {
226 defaultSession = "home-manager";
227 #defaultSession = "none+xmonad";
228 #defaultSession = "mate";
229 #defaultSession = "cinnamon";
231 user = config.users.users.julm.name;
235 nixpkgs.config.allowUnfreePredicate =
237 builtins.elem (lib.getName pkg) [
263 # This value determines the NixOS release with which your system is to be
264 # compatible, in order to avoid breaking some software such as database
265 # servers. You should change this only after NixOS release notes say you should.
266 system.stateVersion = "25.05"; # Did you read the comment?