1
Fork 0
mirror of https://github.com/thegeneralist01/config.git synced 2026-03-07 10:59:55 +01:00

central: add SSD, turn off autosuspend

This commit is contained in:
TheGeneralist 2025-08-02 17:09:44 +02:00
parent 37c4eeaca6
commit afe02a3ff6
Signed by: thegeneralist01
SSH key fingerprint: SHA256:pp9qddbCNmVNoSjevdvQvM5z0DHN7LTa8qBMbcMq/R4

View file

@ -1,29 +1,52 @@
{ lib, ... }: { lib, ... }:
{ {
boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "nvme" "usbhid" "usb_storage" "sd_mod" ]; boot.initrd.availableKernelModules = [
"xhci_pci"
"ahci"
"nvme"
"usbhid"
"usb_storage"
"sd_mod"
];
boot.initrd.kernelModules = [ ]; boot.initrd.kernelModules = [ ];
# Wi-Fi stuff # Wi-Fi stuff
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true; hardware.enableAllFirmware = true;
fileSystems."/" = fileSystems."/" = {
{ device = "/dev/disk/by-label/NIXROOT";
device = "/dev/disk/by-label/NIXROOT"; fsType = "ext4";
fsType = "ext4"; };
};
fileSystems."/boot" = fileSystems."/boot" = {
{ device = "/dev/disk/by-label/NIXBOOT";
device = "/dev/disk/by-label/NIXBOOT"; fsType = "vfat";
fsType = "vfat"; options = [
options = [ "fmask=0022" "dmask=0022" ]; "fmask=0022"
}; "dmask=0022"
];
};
swapDevices = [{ swapDevices = [
device = "/dev/disk/by-label/swap"; {
}]; device = "/dev/disk/by-label/swap";
}
];
fileSystems."/mnt/usb" = {
device = "/dev/disk/by-uuid/AADEEA03DEE9C7A1";
fsType = "ntfs-3g";
options = [
"rw"
"noatime"
];
};
boot.extraModprobeConfig = ''
options usbcore autosuspend=-1
'';
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking # 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 # (the default) this is the recommended approach. When using systemd-networkd it's