]> Git — Sourcephile - sourcephile-nix.git/blob - .envrc
update
[sourcephile-nix.git] / .envrc
1 # Let `nix build` put its result into rightly available commands.
2 export PATH="$PWD/result/bin:$PATH"
3
4 # Use password-store on a local git repository.
5 export PASSWORD_STORE_DIR="$PWD/sec/var/pass"
6
7 #NIX_PATH="nixpkgs=$PWD/lib/nixpkgs"
8 NIX_PATH="nixpkgs=/home/julm/src/nixos"
9 NIX_PATH+=":nixsys=$PWD/lib/nixsys"
10 NIX_PATH+=":sys=$PWD"
11 #NIX_PATH+=":nixpkgs-overlays=$PWD/lib/nixsys/build/overlays.nix"
12 export NIX_PATH
13
14 # Use NixOps as Disnix's provisioning backend
15 #export DISNIXOS_USE_NIXOPS=1
16 #export DISNIX_CLIENT_INTERFACE=disnix-nixops-client
17 #export DISNIX_PROFILE=default
18 #export DISNIX_TARGET_PROPERTY=hostname
19 #export DYSNOMIA_STATEDIR=var/dysnomia
20
21 # Use gpg on a local home.
22 #export GNUPGHOME=$PWD/sec/var/gnupg
23
24 # Let NixOps use install/physical/${NIXOPS_DEPLOYMENT}.nix
25 export NIXOPS_DEPLOYMENT="virtualbox"
26 export NIXOPS_STATE="$PWD/sec/var/nixops/state.nixops"
27 # Extend the Nix interpreter
28 # to enable builtins.extraBuiltins,
29 # which provides an unsafe exec useful to get secrets
30 # from the local password-store.
31 NIXOPS_OPTS+=" --show-trace"
32 NIXOPS_OPTS+=" --option plugin-files $PWD/result/nix/plugins/libnix-extra-builtins.so"
33 NIXOPS_OPTS+=" --option extra-builtins-file $PWD/result/nix/extra-builtins.nix"
34 export NIXOPS_OPTS