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.adb.enable = true;
110 programs.fuse.userAllowOther = true;
112 services.davfs2.enable = true;
114 systemd.automounts = [
116 where = "/mnt/aubergine";
117 automountConfig.TimeoutIdleSec = "5 min";
122 # Use the user's gpg-agent session to query
123 # for the password of the SSH key when auto-mounting.
124 sshAsUser = pkgs.writeScript "sshAsUser" ''
126 exec ${pkgs.sudo}/bin/sudo -i -u "$user" \
127 ${pkgs.openssh}/bin/ssh "$@"
134 "exec" # Override "user"'s noexec
138 "ssh_command=${sshAsUser}\\040julm"
141 "x-systemd.automount"
142 #"Compression=yes" # YMMV
143 # Disconnect approximately 2*15=30 seconds after a network failure
144 "ServerAliveCountMax=1"
145 "ServerAliveInterval=15"
152 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@aubergine.sp:/";
157 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@losurdo.sp:/";
162 device = "${pkgs.sshfs-fuse}/bin/sshfs#julm@mermet.sp:/";
167 "/mnt/ilico/severine" = {
168 device = "https://nuage.ilico.org/remote.php/dav/files/severine/";
172 conf = pkgs.writeText "davfs2.conf" ''
173 backup_dir /home/julm/.local/share/davfs2/ilico/severine
174 secrets /home/julm/.davfs2/secrets
186 "x-systemd.automount"
187 "x-systemd.device-timeout=1m"
188 "x-systemd.idle-timeout=1m"
189 "x-systemd.mount-timeout=10s"
195 services.udev.packages = [
196 # Allow the console user access the Yubikey USB device node,
197 # needed for challenge/response to work correctly.
198 pkgs.yubikey-personalization
203 layout = "fr,us(altgr-intl)";
207 # Let the session be generated by home-manager
209 name = "home-manager";
211 ${pkgs.runtimeShell} $HOME/.hm-xsession &
219 services.displayManager = {
220 defaultSession = "home-manager";
221 #defaultSession = "none+xmonad";
222 #defaultSession = "mate";
223 #defaultSession = "cinnamon";
225 user = config.users.users.julm.name;
229 nixpkgs.config.allowUnfreePredicate =
231 builtins.elem (lib.getName pkg) [
257 # This value determines the NixOS release with which your system is to be
258 # compatible, in order to avoid breaking some software such as database
259 # servers. You should change this only after NixOS release notes say you should.
260 system.stateVersion = "24.11"; # Did you read the comment?