nixos/vms: Add UUID and MAC address options

This commit is contained in:
2022-05-12 21:06:46 +01:00
parent 1eac3c8577
commit 5563d1be46
3 changed files with 12 additions and 2 deletions

View File

@@ -42,6 +42,12 @@ in
help = pkgs.agenix.meta.description;
command = ''exec ${pkgs.agenix}/bin/agenix --identity "$PRJ_ROOT/.keys/dev.key" "$@"'';
}
{
name = "qemu-genmac";
category = "utilities";
help = "Generate MAC address suitable for QEMU";
command = ''printf "52:54:00:ab:%02x:%02x\n" $((RANDOM%256)) $((RANDOM%256))'';
}
{
name = "fmt";