aboutsummaryrefslogtreecommitdiff
path: root/machines/nixos/x86_64-linux/synology-vm/hardware.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-08-12 10:23:46 -0700
committerFranck Cuny <franck@fcuny.net>2025-08-12 10:23:46 -0700
commit9043eef836f8c60ca4ab13774f580c58ddc67446 (patch)
tree8b701aeb82687dacd551aeb8f912c565a9e03b68 /machines/nixos/x86_64-linux/synology-vm/hardware.nix
parentadd profiles for darwin and remote builder (diff)
downloadinfra-9043eef836f8c60ca4ab13774f580c58ddc67446.tar.gz
move hardware config closer to the host config
Diffstat (limited to 'machines/nixos/x86_64-linux/synology-vm/hardware.nix')
-rw-r--r--machines/nixos/x86_64-linux/synology-vm/hardware.nix23
1 files changed, 23 insertions, 0 deletions
diff --git a/machines/nixos/x86_64-linux/synology-vm/hardware.nix b/machines/nixos/x86_64-linux/synology-vm/hardware.nix
new file mode 100644
index 0000000..ad1fd3f
--- /dev/null
+++ b/machines/nixos/x86_64-linux/synology-vm/hardware.nix
@@ -0,0 +1,23 @@
+{ lib, modulesPath, ... }:
+{
+ imports = [
+ (modulesPath + "/profiles/qemu-guest.nix")
+ (modulesPath + "/installer/scan/not-detected.nix")
+ ];
+
+ boot.initrd.availableKernelModules = [
+ "ata_piix"
+ "uhci_hcd"
+ "virtio_pci"
+ "virtio_scsi"
+ "sd_mod"
+ "sr_mod"
+ ];
+ boot.initrd.kernelModules = [ ];
+ boot.kernelModules = [ "kvm-amd" ];
+ boot.extraModulePackages = [ ];
+
+ swapDevices = [ ];
+
+ nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
+}