Advertisement
Guest User

Untitled

a guest
Mar 11th, 2025
38
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.13 KB | None | 0 0
  1. { config, lib, pkgs, ... }:
  2.  
  3. {
  4. networking.hostName = "myvm";
  5.  
  6. virtualisation.proxmox = {
  7. node = "intelnuc";
  8. # autoInstall = lib.mkForce true;
  9. iso = pkgs.runCommand "nixos-minimal.iso" {
  10. # src = ../latest-nixos-minimal-x86_64-linux.iso;
  11. src = ../BookwormPup64_10.0.10.iso;
  12. # src = ../result/iso/byxzdzzic5wkqf408xxxw1qgsvk1fdjj-BookwormPup64_10.0.10.iso;#
  13. # src = ../nixos-minimal.iso;
  14. } ''
  15. mkdir -p $out
  16. mkdir $out/iso
  17. cp $src $out/iso/
  18. '';
  19.  
  20. vmid = 100;
  21. memory = 12288;
  22. cores = 3;
  23. sockets = 1;
  24. boot.order = [ "scsi0" ];
  25. net = [
  26. {
  27. model = "virtio";
  28. bridge = "vmbr0";
  29. }
  30. ];
  31. scsi = [
  32. {
  33. file = "local:0,format=qcow2,import-from=/home/spiderunderurbed/hdd/vms/vm-1/nixos.qcow2";
  34. # size = "20G"; # Ensure this matches or exceeds the size of your disk image
  35. # format = "none"; # Specify the disk format as qcow2
  36. }
  37. ];
  38.  
  39. };
  40.  
  41. services.openssh.enable = true;
  42. time.timeZone = "UTC";
  43.  
  44. # 🔧 Fix conflicting image.baseName
  45. # image.baseName = lib.mkForce "nixos-custom";
  46. }
  47.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement