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 pumpkin/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 .#pumpkin.switch
38 ../users/julm/ssh/pumpkin.pub
44 # Put the hashedPassword in /nix/store,
45 # though /etc/shadow is not world readable...
46 # printf %s $(mkpasswd -m md5crypt)
47 hashedPassword = lib.readFile pumpkin/users/julm/login/hashedPassword.clear;
53 "plugdev" # For rtl-sdr
60 #config.services.davfs2.davGroup
61 config.services.kubo.group
64 # If created, zfs-mount.service would require:
65 # zfs set overlay=yes ${hostName}/home
67 openssh.authorizedKeys.keys = map lib.readFile [
68 ../users/julm/ssh/losurdo.pub
69 ../users/julm/ssh/nan2gua1.pub
76 #"http://nix-localcache.losurdo.sp"
77 #"file:///mnt/off4/julm/nix?priority=10&trusted=true"
78 "ssh://nix-ssh@losurdo.sp?priority=30"
80 trusted-public-keys = map lib.readFile [
81 ../users/nix/ssh/losurdo.pub
85 #environment.etc."nixpkgs".source = pkgs.path;
86 #environment.etc."nixpkgs-overlays".source = inputs.self + "/nixpkgs";
88 nix.settings.allowed-users = [
89 #config.users.users."nix-ssh".name
93 keys = map lib.readFile [
94 ../users/julm/ssh/losurdo.pub
95 ../users/julm/ssh/pumpkin.pub
96 ../users/sevy/ssh/patate.pub
100 environment.systemPackages = [
101 #pkgs.riseup-vpn # Can't be installed by home-manager because it needs to install policy-kit rules
104 boot.extraModulePackages = [
105 #config.boot.kernelPackages.v4l2loopback
108 programs.fuse.userAllowOther = true;
110 #services.davfs2.enable = true;
112 systemd.automounts = [
114 where = "/mnt/aubergine";
115 automountConfig.TimeoutIdleSec = "5 min";
120 # Use the user's gpg-agent session to query
121 # for the password of the SSH key when auto-mounting.
122 sshAsUser = pkgs.writeScript "sshAsUser" ''
124 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
125 ${pkgs.openssh}/bin/ssh "$@"
132 "exec" # Override "user"'s noexec
136 "ssh_command=${sshAsUser}\\040julm"
139 "x-systemd.automount"
140 #"Compression=yes" # YMMV
141 # Disconnect approximately 2*15=30 seconds after a network failure
142 "ServerAliveCountMax=1"
143 "ServerAliveInterval=15"
150 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
155 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
160 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
165 "/mnt/ilico/severine" = {
166 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
170 conf = pkgs.writeText "davfs2.conf" ''
171 backup_dir /home/julm/.local/share/davfs2/ilico/severine
172 secrets /home/julm/.davfs2/secrets
184 "x-systemd.automount"
185 "x-systemd.device-timeout=1m"
186 "x-systemd.idle-timeout=1m"
187 "x-systemd.mount-timeout=10s"
193 services.udev.packages = [
194 # Allow the console user access the Yubikey USB device node,
195 # needed for challenge/response to work correctly.
196 pkgs.yubikey-personalization
201 layout = "fr,us(altgr-intl)";
205 # Let the session be generated by home-manager
207 name = "home-manager";
209 ${pkgs.runtimeShell} $HOME/.hm-xsession &
217 services.displayManager = {
218 defaultSession = "home-manager";
219 #defaultSession = "none+xmonad";
220 #defaultSession = "mate";
221 #defaultSession = "cinnamon";
223 user = config.users.users.julm.name;
227 nixpkgs.config.allowUnfreePredicate =
229 builtins.elem (lib.getName pkg) [
255 # This value determines the NixOS release with which your system is to be
256 # compatible, in order to avoid breaking some software such as database
257 # servers. You should change this only after NixOS release notes say you should.
258 system.stateVersion = "24.11"; # Did you read the comment?