aboutsummaryrefslogtreecommitdiff
path: root/hosts/vps/hardware-configuration.nix
diff options
context:
space:
mode:
authorschererleander <leander@schererleander.de>2025-05-30 02:52:33 +0200
committerschererleander <leander@schererleander.de>2025-05-30 02:52:33 +0200
commitc231c72a934dcf93cae381dfce8580343867ca2e (patch)
treeffda4992befc70330febc20f74d52d935d618d65 /hosts/vps/hardware-configuration.nix
parent3e81f999049b1b8abf5865223b2f37af972a6616 (diff)
add vps config
Diffstat (limited to 'hosts/vps/hardware-configuration.nix')
-rw-r--r--hosts/vps/hardware-configuration.nix14
1 files changed, 14 insertions, 0 deletions
diff --git a/hosts/vps/hardware-configuration.nix b/hosts/vps/hardware-configuration.nix
new file mode 100644
index 0000000..68ab0a2
--- /dev/null
+++ b/hosts/vps/hardware-configuration.nix
@@ -0,0 +1,14 @@
+{ modulesPath, ... }:
+{
+ imports = [ (modulesPath + "/profiles/qemu-guest.nix") ];
+ boot.loader.grub = {
+ efiSupport = true;
+ efiInstallAsRemovable = true;
+ device = "nodev";
+ };
+ fileSystems."/boot" = { device = "/dev/disk/by-uuid/4E07-7ABB"; fsType = "vfat"; };
+ boot.initrd.availableKernelModules = [ "ata_piix" "uhci_hcd" "xen_blkfront" "vmw_pvscsi" ];
+ boot.initrd.kernelModules = [ "nvme" ];
+ fileSystems."/" = { device = "/dev/vda1"; fsType = "ext4"; };
+
+}