Add local (and untracked by git) settings

This commit is contained in:
dump_stack() 2018-07-01 06:56:16 +00:00
parent 13211abdb9
commit babd958410
4 changed files with 8 additions and 0 deletions

1
.gitignore vendored
View File

@ -6,3 +6,4 @@ qemu/bin/*
!qemu/bin/.keep
share/*
!share/.keep
nix/local.nix

View File

@ -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

View File

@ -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

View File

@ -1,6 +1,7 @@
{
imports = [
<nix/monitor.nix>
<nix/local.nix>
];
system.nixos.stateVersion = "18.03";