forked from fediversity/fediversity
Compare commits
No commits in common. "38585ba310fc9770e7a5ab30be1af94bf8d1020a" and "257788d5b749074428dfa0c2fc4c4c94726bbbca" have entirely different histories.
38585ba310
...
257788d5b7
5 changed files with 23 additions and 3 deletions
|
|
@ -48,6 +48,16 @@ in
|
||||||
services.proxmox-ve = {
|
services.proxmox-ve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ipAddress = "192.168.1.1";
|
ipAddress = "192.168.1.1";
|
||||||
|
vms = {
|
||||||
|
myvm1 = {
|
||||||
|
vmid = 100;
|
||||||
|
memory = 1024;
|
||||||
|
cores = 1;
|
||||||
|
sockets = 1;
|
||||||
|
kvm = true;
|
||||||
|
scsi = [ { file = "local:16"; } ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
diskSize = 2 * 1024;
|
diskSize = 2 * 1024;
|
||||||
|
|
|
||||||
|
|
@ -49,6 +49,16 @@ in
|
||||||
services.proxmox-ve = {
|
services.proxmox-ve = {
|
||||||
enable = true;
|
enable = true;
|
||||||
ipAddress = "192.168.1.1";
|
ipAddress = "192.168.1.1";
|
||||||
|
vms = {
|
||||||
|
myvm1 = {
|
||||||
|
vmid = 100;
|
||||||
|
memory = 1024;
|
||||||
|
cores = 1;
|
||||||
|
sockets = 1;
|
||||||
|
kvm = true;
|
||||||
|
scsi = [ { file = "local:16"; } ];
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
virtualisation = {
|
virtualisation = {
|
||||||
diskSize = 2 * 1024;
|
diskSize = 2 * 1024;
|
||||||
|
|
|
||||||
|
|
@ -548,7 +548,7 @@ let
|
||||||
(pkgs.callPackage ./run/tf-proxmox/tf.nix { inherit sources; })
|
(pkgs.callPackage ./run/tf-proxmox/tf.nix { inherit sources; })
|
||||||
])
|
])
|
||||||
''
|
''
|
||||||
set -e
|
set -xe
|
||||||
|
|
||||||
# bash ./infra/proxmox-remove.sh \
|
# bash ./infra/proxmox-remove.sh \
|
||||||
# --api-url "https://${proxmox-host}:8006/api2/json" \
|
# --api-url "https://${proxmox-host}:8006/api2/json" \
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
#! /usr/bin/env bash
|
#! /usr/bin/env bash
|
||||||
set -euo pipefail
|
set -xeuo pipefail
|
||||||
declare tf_env
|
declare tf_env
|
||||||
|
|
||||||
export TF_LOG=info
|
export TF_LOG=info
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@
|
||||||
sources,
|
sources,
|
||||||
}:
|
}:
|
||||||
pkgs.writeScriptBin "setup" ''
|
pkgs.writeScriptBin "setup" ''
|
||||||
set -e
|
set -xe
|
||||||
# calculated pins
|
# calculated pins
|
||||||
echo '${lib.strings.toJSON sources}' > ./.npins.json
|
echo '${lib.strings.toJSON sources}' > ./.npins.json
|
||||||
# generate TF lock for nix's TF providers
|
# generate TF lock for nix's TF providers
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue