Prove
This commit is contained in:
parent
4300ddacb0
commit
b80563f0ed
10 changed files with 755 additions and 1 deletions
12
lxc-nix/buildLxcImage.sh
Executable file
12
lxc-nix/buildLxcImage.sh
Executable file
|
|
@ -0,0 +1,12 @@
|
|||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -p nixos-generators
|
||||
#! nix-shell -i bash
|
||||
set -xe
|
||||
|
||||
CONFIGURATIONNIX=$1
|
||||
METAIMG=$(nixos-generate -f lxc-metadata)
|
||||
# IMG_PROXMOX=`nixos-generate -c ${CONFIGURATIONNIX} -f proxmox-lxc`
|
||||
IMG=$(nixos-generate -c "${CONFIGURATIONNIX}" -f lxc)
|
||||
|
||||
lxc image delete nixos || echo true
|
||||
lxc image import --alias nixos "${METAIMG}" "${IMG}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue