about summary refs log tree commit diff
path: root/nix/hosts/corrino/vm.nix
blob: 37d13569a91498c2099c6006cf5c3e1031a32f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{ pkgs, ... }:

{
  services.emile.libvirtnix = {
    enable = true;
    instances = {

      vm1 = {
        domain = {
          name = "VM1";
          title = "vm one";
          description = "The first VM";
          id = 1;

          uuid = "E34DE478-1402-45BB-B3FD-FC960549258E";
          genid = "CA1E2462-1E9D-404C-8DDB-19EEF9D9651B";

          packages = {
            libvirt = pkgs.libvirt;
            qemu = pkgs.qemu;
          };
          memory = 1024;
        };
      };

      vm2 = {
        domain = {
          name = "VM2";
          title = "vm one";
          description = "The second VM";
          id = 2;

          uuid = "E34DE478-1402-45BB-B3FD-FC960549258E";
          genid = "002D0D8F-B21A-4001-92BF-2313707EED9D";

          memory = 2048;
        };
      };

    };
  };
}