summaryrefslogtreecommitdiff
path: root/hosts/cloud/hardware-configuration.nix
diff options
context:
space:
mode:
authorGrigory Shipunov2025-01-02 18:23:46 +0000
committerGrigory Shipunov2025-01-02 18:25:21 +0000
commit93a64e881679ac8dd76f67b909df7bc85ac851ce (patch)
tree361623a6d4dbfee2df9823d5726d8d4cab74c7b9 /hosts/cloud/hardware-configuration.nix
parent3de1ca400cc6f2de7ec6b8ecbbf44be130649ef6 (diff)
initial cloud config
Diffstat (limited to 'hosts/cloud/hardware-configuration.nix')
-rw-r--r--hosts/cloud/hardware-configuration.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/hosts/cloud/hardware-configuration.nix b/hosts/cloud/hardware-configuration.nix
new file mode 100644
index 0000000..5e7b44e
--- /dev/null
+++ b/hosts/cloud/hardware-configuration.nix
@@ -0,0 +1,9 @@
+{ modulesPath, ... }:
+{
+ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+ boot.loader.grub.device = "/dev/sda";
+ boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
+ boot.initrd.kernelModules = [ "nvme" ];
+ fileSystems."/" = { device = "/dev/sda1"; fsType = "ext4"; };
+
+}