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
23 ../nixos/profiles/appimage.nix
28 nan2gua1/networking.nix
29 nan2gua1/postgresql.nix
33 # Lower kernel's security for better performances
34 security.kernel.mitigations = "off";
36 home-manager.users.julm = {
37 imports = [ ../homes/julm.nix ];
40 openssh.authorizedKeys.keys = map lib.readFile [
41 # For nix -L run .#$(hostname).switch
42 ../users/julm/ssh/nan2gua1.pub
43 # SecurityToDo: remove
44 ../users/julm/ssh/blackberry.pub
50 # Put the hashedPassword in /nix/store,
51 # though /etc/shadow is not world readable...
52 # printf %s $(mkpasswd -m md5crypt)
53 hashedPassword = lib.readFile pumpkin/users/julm/login/hashedPassword.clear;
59 "plugdev" # For rtl-sdr
67 config.services.davfs2.davGroup
68 config.services.kubo.group
71 # If created, zfs-mount.service would require:
72 # zfs set overlay=yes ${hostName}/home
74 openssh.authorizedKeys.keys = map lib.readFile [
75 ../users/julm/ssh/losurdo.pub
82 #"http://nix-localcache.losurdo.sp"
83 #"file:///mnt/off4/julm/nix?priority=10&trusted=true"
84 #"ssh://nix-ssh@losurdo.sp?priority=30"
86 trusted-public-keys = map lib.readFile [
87 #../users/nix/ssh/losurdo.pub
91 #environment.etc."nixpkgs".source = pkgs.path;
92 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
94 nix.settings.allowed-users = [
95 #config.users.users."nix-ssh".name
99 keys = map lib.readFile [
100 ../users/julm/ssh/losurdo.pub
101 ../users/julm/ssh/pumpkin.pub
102 ../users/julm/ssh/nan2gua1.pub
103 ../users/sevy/ssh/patate.pub
107 environment.systemPackages = [
108 #pkgs.riseup-vpn # Can't be installed by home-manager because it needs to install policy-kit rules
111 boot.extraModulePackages = [
112 #config.boot.kernelPackages.v4l2loopback
115 programs.adb.enable = true;
117 programs.fuse.userAllowOther = true;
119 services.davfs2.enable = true;
121 systemd.automounts = [
123 where = "/mnt/aubergine";
124 automountConfig.TimeoutIdleSec = "5 min";
129 # Use the user's gpg-agent session to query
130 # for the password of the SSH key when auto-mounting.
131 sshAsUser = pkgs.writeScript "sshAsUser" ''
133 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
134 ${pkgs.openssh}/bin/ssh "$@"
141 "exec" # Override "user"'s noexec
145 "ssh_command=${sshAsUser}\\040julm"
148 "x-systemd.automount"
149 #"Compression=yes" # YMMV
150 # Disconnect approximately 2*15=30 seconds after a network failure
151 "ServerAliveCountMax=1"
152 "ServerAliveInterval=15"
159 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
164 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
169 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
174 "/mnt/ilico/severine" = {
175 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
179 conf = pkgs.writeText "davfs2.conf" ''
180 backup_dir /home/julm/.local/share/davfs2/ilico/severine
181 secrets /home/julm/.davfs2/secrets
193 "x-systemd.automount"
194 "x-systemd.device-timeout=1m"
195 "x-systemd.idle-timeout=1m"
196 "x-systemd.mount-timeout=10s"
202 services.udev.packages = [
203 # Allow the console user access the Yubikey USB device node,
204 # needed for challenge/response to work correctly.
205 pkgs.yubikey-personalization
210 layout = "fr,us(altgr-intl)";
214 # Let the session be generated by home-manager
216 name = "home-manager";
218 ${pkgs.runtimeShell} $HOME/.hm-xsession &
226 services.displayManager = {
227 defaultSession = "home-manager";
228 #defaultSession = "none+xmonad";
229 #defaultSession = "mate";
230 #defaultSession = "cinnamon";
232 user = config.users.users.julm.name;
236 nixpkgs.config.allowUnfreePredicate =
238 builtins.elem (lib.getName pkg) [
264 # This value determines the NixOS release with which your system is to be
265 # compatible, in order to avoid breaking some software such as database
266 # servers. You should change this only after NixOS release notes say you should.
267 system.stateVersion = "25.05"; # Did you read the comment?