aboutsummaryrefslogtreecommitdiff
path: root/profiles/hardware/synology-vm.nix
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2025-11-02 13:36:54 -0800
committerFranck Cuny <franck@fcuny.net>2025-11-02 13:36:54 -0800
commit74aefd109ab4df4b41699c7245a995f8fde498c1 (patch)
treee65a6bcbda87f23e1797db5b96c3a5259ede8d74 /profiles/hardware/synology-vm.nix
parentsimplify configuration for darwin (diff)
downloadinfra-74aefd109ab4df4b41699c7245a995f8fde498c1.tar.gz
cleanup nixos related configurations
Diffstat (limited to 'profiles/hardware/synology-vm.nix')
-rw-r--r--profiles/hardware/synology-vm.nix22
1 files changed, 22 insertions, 0 deletions
diff --git a/profiles/hardware/synology-vm.nix b/profiles/hardware/synology-vm.nix
new file mode 100644
index 0000000..7d784eb
--- /dev/null
+++ b/profiles/hardware/synology-vm.nix
@@ -0,0 +1,22 @@
+{ lib, modulesPath, ... }:
+{
+ imports = [
+ (modulesPath + "/profiles/qemu-guest.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";
+}