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 = [ ];