crawler: add crawler

This commit is contained in:
TheGeneralist 2025-08-08 13:04:17 +02:00
parent 2ccb7bc260
commit c180f98284
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4
10 changed files with 122 additions and 34 deletions

View file

@ -1,4 +1,4 @@
{ lib, ... }:
{ lib, pkgs, ... }:
{
boot.initrd.availableKernelModules = [
@ -35,19 +35,25 @@
}
];
fileSystems."/mnt/usb" = {
device = "/dev/disk/by-uuid/AADEEA03DEE9C7A1";
fsType = "ntfs-3g";
options = [
"rw"
"noatime"
];
};
# fileSystems."/mnt/usb" = {
# device = "/dev/disk/by-uuid/AADEEA03DEE9C7A1";
# fsType = "ntfs-3g";
# options = [
# "rw"
# "noatime"
# ];
# };
#
boot.extraModprobeConfig = ''
options usbcore autosuspend=-1
'';
environment.systemPackages = [ pkgs.hdparm ];
services.udev.extraRules = ''
ACTION=="add", KERNEL=="sda", RUN+="${pkgs.hdparm}/bin/hdparm -B 255 -S 0 /dev/sda"
'';
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking
# (the default) this is the recommended approach. When using systemd-networkd it's
# still possible to use this option, but it's recommended to use it in conjunction