hardware rewrite

This commit is contained in:
bogale 2026-10-07 09:54:55 +09:00
commit 277291f346
8 changed files with 40 additions and 50 deletions

27
server/hardware.nix Normal file
View file

@ -0,0 +1,27 @@
{ config, lib, pkgs, modulesPath, ... }:
{
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
boot = {
kernelParams = [
"memmap=0x4000%0xbfb76000-4"
"memmap=0x4000%0xbfb7a000-4"
];
initrd = {
availableKernelModules = [ "xhci_pci" "ahci" "ehci_pci" "sd_mod" "sdhci_pci" ];
luks.devices.root.device = "/dev/disk/by-uuid/e0288e5e-87eb-453f-ab22-0d6e54576609";
};
};
fileSystems = {
"/" = {
fsType = "ext4";
device = "/dev/mapper/root";
};
"/boot" = {
fsType = "vfat";
device = "/dev/disk/by-uuid/86F4-A8F1";
options = [ "fmask=0077" "dmask=0077" ];
};
};
}