mirror of
https://code.dumpstack.io/tools/appvm.git
synced 2024-11-26 14:13:01 +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
|
||||
share/*
|
||||
!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
|
||||
|
||||
You can customize local settings in `nix/local.nix`.
|
||||
|
||||
## Run application
|
||||
|
||||
$ appvm.chromium
|
||||
|
4
appvm.sh
4
appvm.sh
@ -3,6 +3,10 @@
|
||||
APPVM_PATH=$(dirname $(realpath $0))
|
||||
cd ${APPVM_PATH}
|
||||
|
||||
if [ ! -f nix/local.nix ]; then
|
||||
echo -e "{\n}" >> nix/local.nix
|
||||
fi
|
||||
|
||||
if [[ "$1" == "build" && "$2" != "" ]]; then
|
||||
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
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
imports = [
|
||||
<nix/monitor.nix>
|
||||
<nix/local.nix>
|
||||
];
|
||||
|
||||
system.nixos.stateVersion = "18.03";
|
||||
|
Loading…
Reference in New Issue
Block a user