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, ... }:
{
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 = [ ];
# Wi-Fi stuff
nixpkgs.config.allowUnfree = true;
hardware.enableAllFirmware = true;
fileSystems."/" =
{
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
fileSystems."/" = {
device = "/dev/disk/by-label/NIXROOT";
fsType = "ext4";
};
fileSystems."/boot" =
{
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
options = [ "fmask=0022" "dmask=0022" ];
};
fileSystems."/boot" = {
device = "/dev/disk/by-label/NIXBOOT";
fsType = "vfat";
options = [
"fmask=0022"
"dmask=0022"
];
};
swapDevices = [{
device = "/dev/disk/by-label/swap";
}];
swapDevices = [
{
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
# (the default) this is the recommended approach. When using systemd-networkd it's