diff --git a/hosts/template/configuration.nix b/hosts/template/configuration.nix index 2a03ae3..db88cc3 100644 --- a/hosts/template/configuration.nix +++ b/hosts/template/configuration.nix @@ -10,7 +10,7 @@ boot.loader.grub.enable = true; - boot.loader.grub.device = "/dev/sda"; + boot.loader.grub.device = "/dev/xvda"; networking.hostName = "nixos-template"; networking.domain = "home.2rjus.net"; networking.useNetworkd = true; diff --git a/hosts/template/hardware-configuration.nix b/hosts/template/hardware-configuration.nix index 555f0b4..58d03b0 100644 --- a/hosts/template/hardware-configuration.nix +++ b/hosts/template/hardware-configuration.nix @@ -1,24 +1,19 @@ { config, lib, pkgs, modulesPath, ... }: { - 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" "sr_mod" "xen_blkfront" ]; boot.initrd.kernelModules = [ "dm-snapshot" ]; boot.kernelModules = [ ]; boot.extraModulePackages = [ ]; fileSystems."/" = { - device = "/dev/disk/by-uuid/68e895de-b547-4ba2-bfc6-57ec5eeea19f"; + device = "/dev/disk/by-label/root"; fsType = "xfs"; }; swapDevices = - [{ device = "/dev/disk/by-uuid/bfbe964e-89d8-48f0-b4e2-9723ee1081ac"; }]; + [{ device = "/dev/disk/by-label/swap"; }]; # Enables DHCP on each ethernet and wireless interface. In case of scripted networking # (the default) this is the recommended approach. When using systemd-networkd it's