diff --git a/nixos/hosts/phantom-ship-hardware.nix b/nixos/hosts/phantom-ship-hardware.nix index 19413f8..36ac938 100644 --- a/nixos/hosts/phantom-ship-hardware.nix +++ b/nixos/hosts/phantom-ship-hardware.nix @@ -1,16 +1,27 @@ -# STUB — replace with output of: nixos-generate-config --show-hardware-config -# The install script saves the real config here automatically. -# Filesystems are managed by disko during install; only boot/initrd config here. +# Generated by nixos-generate-config on phantom-ship (cleaned of chroot bind-mount duplicates) { config, lib, pkgs, modulesPath, ... }: - { imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; - boot.loader.systemd-boot.enable = true; - boot.loader.efi.canTouchEfiVariables = true; + boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" "sr_mod" "rtsx_pci_sdmmc" ]; + boot.initrd.kernelModules = [ ]; + boot.kernelModules = [ ]; + boot.extraModulePackages = [ ]; - boot.initrd.availableKernelModules = [ "xhci_pci" "ahci" "usb_storage" "sd_mod" ]; - boot.kernelModules = [ "kvm-intel" ]; + boot.initrd.luks.devices."crypted".device = "/dev/disk/by-uuid/796c1fcd-af8b-449a-90f2-9ebcb9640462"; + + fileSystems."/" = { + device = "/dev/mapper/crypted"; + fsType = "ext4"; + }; + + fileSystems."/boot" = { + device = "/dev/disk/by-uuid/70E3-E5D8"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + swapDevices = [ ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; hardware.cpu.intel.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;