aboutsummaryrefslogtreecommitdiffstats
path: root/shell.nix
diff options
context:
space:
mode:
authorLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-15 06:27:47 +0100
committerLibravatar Alexander Foremny <aforemny@posteo.de>2024-02-19 05:19:37 +0100
commitdb8cb61d4a13fa861440379f4788a6524d880467 (patch)
tree043f798a9ecb149285e06aaa3e46f2850d5c6a00 /shell.nix
parent59b9bf48851f85de8844d888de6c82dcfb4df5fa (diff)
init code.nomath.org
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix12
1 files changed, 12 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..1b660a3
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,12 @@
+{ pkgs ? import <nixpkgs> { } }:
+let inherit (pkgs) lib; in
+pkgs.mkShell {
+ buildInputs = [
+ pkgs.git
+ pkgs.niv
+ ];
+ shellHook = ''
+ PASSWORD_STORE_DIR=${lib.escapeShellArg (toString ./.)}/secrets; export PASSWORD_STORE_DIR
+ HETZNER_DNS_API_TOKEN=$(pass show hetznerdns-api-token); export HETZNER_DNS_API_TOKEN
+ '';
+}