From d0cb1b50909b79ba0f34ec1925b277cf3b57eada Mon Sep 17 00:00:00 2001 From: emmatherock Date: Wed, 12 Aug 2026 03:21:07 -0300 Subject: [PATCH] feat(vps): use real generated hardware-configuration.nix Replaces the placeholder with the actual output of nixos-generate-config from the installed VPS (real disk UUIDs, qemu-guest profile, virtio kernel modules). Co-Authored-By: Claude Sonnet 5 --- hosts/vps/hardware-configuration.nix | 29 +++++++++++++++++----------- 1 file changed, 18 insertions(+), 11 deletions(-) diff --git a/hosts/vps/hardware-configuration.nix b/hosts/vps/hardware-configuration.nix index f5cbd09..dfeb9f8 100644 --- a/hosts/vps/hardware-configuration.nix +++ b/hosts/vps/hardware-configuration.nix @@ -1,21 +1,28 @@ -{ lib, ... }: +# Do not modify this file! It was generated by ‘nixos-generate-config’ +# and may be overwritten by future invocations. Please make changes +# to /etc/nixos/configuration.nix instead. +{ config, lib, pkgs, modulesPath, ... }: -# PLACEHOLDER: this host has not been installed yet. Replace this whole file -# with the real hardware-configuration.nix generated by `nixos-generate-config` -# during the actual installation (it will pick up the real disk UUIDs, -# filesystem types, and kernel modules for the VPS provider's image). { - imports = [ ]; + imports = + [ (modulesPath + "/profiles/qemu-guest.nix") + ]; - boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "sd_mod" "sr_mod" ]; + boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "virtio_pci" "virtio_scsi" "ahci" "sd_mod" "sr_mod" "virtio_blk" ]; boot.initrd.kernelModules = [ ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; - fileSystems."/" = { - device = "/dev/disk/by-uuid/00000000-0000-0000-0000-000000000000"; - fsType = "ext4"; - }; + fileSystems."/boot" = + { device = "/dev/disk/by-uuid/9601-188F"; + fsType = "vfat"; + options = [ "fmask=0022" "dmask=0022" ]; + }; + + fileSystems."/" = + { device = "/dev/disk/by-uuid/2fe62056-55d1-4d2a-97a4-74451f7a63d0"; + fsType = "ext4"; + }; swapDevices = [ ];