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