new uptime-kuma service, new drive

This commit is contained in:
Reid 2025-06-01 17:37:53 -07:00
parent 7a9f880f6d
commit 4bf1b55911
4 changed files with 52 additions and 6 deletions

View file

@ -4,9 +4,6 @@
imports = [
inputs.hardware.nixosModules.common-pc-ssd
inputs.hardware.nixosModules.common-pc
# uses mkDefault to set to a patched kernel,
# but it conflicts with one of our mkDefault settings
#inputs.hardware.nixosModules.raspberry-pi-4
(modulesPath + "/installer/scan/not-detected.nix")
];
@ -14,7 +11,10 @@
# use better power management for a device that's always on
powerManagement.cpuFreqGovernor = lib.mkDefault "ondemand";
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
# i have a couple others i don't noramlly include, such as:
# uas (uasp, scsi over usb), usbcore (needed(???) for the drive at boot)
# pcie_brcmstb (required for pcie), reset-raspberrypi (needed for vl805 firmware to load)
boot.initrd.availableKernelModules = [ "xhci_pci" "ehci_pci" "ahci" "pcie_brcmstb" "reset-raspberrypi" "uas" "usbcore" "usbhid" "usb_storage" "sd_mod" "sdhci_pci" ];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ ];
boot.extraModulePackages = [ ];
@ -23,8 +23,16 @@
boot.loader.grub.enable = false;
boot.loader.generic-extlinux-compatible.enable = true;
# needed for initial framebuffer logs to appear on raspberry pi
# i think. this fixes it but idk if they are all required
boot.kernelParams = [
"8250.nr_uarts=1"
"cma=128M"
"console=tty0"
];
fileSystems."/" =
{ device = "/dev/disk/by-uuid/44444444-4444-4444-8888-888888888888";
{ device = "/dev/disk/by-uuid/04542424-6899-4b94-9414-fffa569f2c03";
fsType = "ext4";
options = [ "noatime" "nodiratime" "discard" ];
};