From f63d6d4195a70e753cfcbe920b0f35229f204aea Mon Sep 17 00:00:00 2001 From: ediblerope Date: Tue, 14 Apr 2026 15:50:59 +0100 Subject: [PATCH] Add new mediaserver hardware config for UEFI server New server uses systemd-boot instead of GRUB. Data disks and mergerfs pool to be added after physical disk migration. Co-Authored-By: Claude Opus 4.6 --- hosts/hardware/FredOS-Mediaserver.nix | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/hosts/hardware/FredOS-Mediaserver.nix b/hosts/hardware/FredOS-Mediaserver.nix index 9da92ec..921f5d0 100644 --- a/hosts/hardware/FredOS-Mediaserver.nix +++ b/hosts/hardware/FredOS-Mediaserver.nix @@ -1,11 +1,34 @@ #./hosts/hardware/FredOS-Mediaserver.nix -# TODO: Replace with hardware-configuration.nix from new server { config, lib, pkgs, modulesPath, ... }: { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; + boot.initrd.availableKernelModules = [ "ahci" "xhci_pci" "ata_generic" "ehci_pci" "usbhid" "usb_storage" "sd_mod" "rtsx_usb_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ "kvm-intel" ]; + boot.extraModulePackages = [ ]; + + fileSystems."/" = { + device = "/dev/disk/by-uuid/092fa47c-2ebd-4fbb-84f1-ce9cd606ed67"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/2E97-CB68"; + fsType = "vfat"; + options = [ "fmask=0077" "dmask=0077" ]; + }; + + swapDevices = [ ]; + + nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; + hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; networking.hostName = "FredOS-Mediaserver"; + + boot.loader.systemd-boot.enable = true; + boot.loader.efi.canTouchEfiVariables = true; + system.stateVersion = "25.11"; }