crawler: add crawler
This commit is contained in:
parent
2ccb7bc260
commit
c180f98284
10 changed files with 122 additions and 34 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue