Feat/t400 and macpro31 hosts #17

Merged
lyrathorpe merged 21 commits from feat/t400-and-macpro31-hosts into main 2026-06-09 21:35:09 +01:00
Showing only changes of commit 578e045a53 - Show all commits
@@ -1,52 +1,33 @@
# PLACEHOLDER -- hand-written, not machine-generated. Regenerate on the real # Do not modify this file! It was generated by nixos-generate-config
# Mac Pro 3,1 with `nixos-generate-config` and commit the result. The device # and may be overwritten by future invocations. Please make changes
# labels below are guesses; replace them with the generated UUIDs (or label the # to /etc/nixos/configuration.nix instead.
# partitions accordingly at install time). { config, lib, pkgs, modulesPath, ... }:
{
config,
lib,
modulesPath,
...
}:
{ {
imports = [ imports =
(modulesPath + "/installer/scan/not-detected.nix") [ (modulesPath + "/installer/scan/not-detected.nix")
]; ];
boot.initrd.availableKernelModules = [ boot.initrd.availableKernelModules = [ "uhci_hcd" "ehci_pci" "ata_piix" "ahci" "firewire_ohci" "usb_storage" "usbhid" "sd_mod" ];
"ahci" boot.initrd.kernelModules = [ "dm-snapshot" ];
"ata_piix"
"ehci_pci"
"uhci_hcd"
"firewire_ohci"
"usb_storage"
"sd_mod"
"sr_mod"
];
boot.initrd.kernelModules = [ ];
boot.kernelModules = [ "kvm-intel" ]; boot.kernelModules = [ "kvm-intel" ];
boot.extraModulePackages = [ ]; boot.extraModulePackages = [ ];
# EFI System Partition for systemd-boot. Label the ESP `ESP` at install, or fileSystems."/" =
# replace with the generated UUID. { device = "/dev/mapper/MacPro-Root";
fileSystems."/boot" = { fsType = "ext4";
device = "/dev/disk/by-label/ESP"; };
fsType = "vfat";
};
# Label your root partition `nixos` at install, or replace with the generated UUID. fileSystems."/boot" =
fileSystems."/" = { { device = "/dev/disk/by-uuid/0E9C-C099";
device = "/dev/disk/by-label/nixos"; fsType = "vfat";
fsType = "ext4"; options = [ "fmask=0022" "dmask=0022" ];
}; };
swapDevices = [
{ device = "/dev/disk/by-label/swap"; }
];
swapDevices =
[ { device = "/dev/disk/by-uuid/dec138b4-320f-4b69-acbc-3014a1032cbd"; }
];
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
} }