mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-24 00:51:38 +00:00
Add local (and untracked by git) settings
This commit is contained in:
parent
13211abdb9
commit
babd958410
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -6,3 +6,4 @@ qemu/bin/*
|
||||||
!qemu/bin/.keep
|
!qemu/bin/.keep
|
||||||
share/*
|
share/*
|
||||||
!share/.keep
|
!share/.keep
|
||||||
|
nix/local.nix
|
||||||
|
|
|
@ -33,6 +33,8 @@ Autodetection is a bash-spaghetti, so you need to check results. BTW it's just a
|
||||||
|
|
||||||
$ $HOME/appvm/appvm.sh build chromium
|
$ $HOME/appvm/appvm.sh build chromium
|
||||||
|
|
||||||
|
You can customize local settings in `nix/local.nix`.
|
||||||
|
|
||||||
## Run application
|
## Run application
|
||||||
|
|
||||||
$ appvm.chromium
|
$ appvm.chromium
|
||||||
|
|
4
appvm.sh
4
appvm.sh
|
@ -3,6 +3,10 @@
|
||||||
APPVM_PATH=$(dirname $(realpath $0))
|
APPVM_PATH=$(dirname $(realpath $0))
|
||||||
cd ${APPVM_PATH}
|
cd ${APPVM_PATH}
|
||||||
|
|
||||||
|
if [ ! -f nix/local.nix ]; then
|
||||||
|
echo -e "{\n}" >> nix/local.nix
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ "$1" == "build" && "$2" != "" ]]; then
|
if [[ "$1" == "build" && "$2" != "" ]]; then
|
||||||
rm qemu/qcow/${2}.qcow2
|
rm qemu/qcow/${2}.qcow2
|
||||||
NIX_PATH=$NIX_PATH:. nix-build '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
|
NIX_PATH=$NIX_PATH:. nix-build '<nixpkgs/nixos>' -A config.system.build.vm -I nixos-config=nix/${2}.nix || exit 1
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
imports = [
|
imports = [
|
||||||
<nix/monitor.nix>
|
<nix/monitor.nix>
|
||||||
|
<nix/local.nix>
|
||||||
];
|
];
|
||||||
|
|
||||||
system.nixos.stateVersion = "18.03";
|
system.nixos.stateVersion = "18.03";
|
||||||
|
|
Loading…
Reference in a new issue