about summary refs log tree commit diff
path: root/flake.nix
diff options
context:
space:
mode:
Diffstat (limited to 'flake.nix')
-rw-r--r--flake.nix8
1 files changed, 1 insertions, 7 deletions
diff --git a/flake.nix b/flake.nix
index 4aa409b..685e66d 100644
--- a/flake.nix
+++ b/flake.nix
@@ -55,13 +55,7 @@
         packages = pkgs // {
           inherit home-manager;
 
-          # nix run .#dnsupdate
-          dnsupdate = pkgs.writers.writeBashBin "dnsupdate" ''
-            #!/usr/bin/env bash
-            export TS_API_KEY=$(pass api/api.tailscale.com)
-            export GOOGLE_APPLICATION_CREDENTIALS=/run/agenix/gcloud/world-nix
-            go run ./cmd/dnsupdate/
-          '';
+          tools = { dnsupdate = import ./tools/dnsupdate { inherit pkgs; }; };
 
           users.fcuny = {
             blog = import ./users/fcuny/blog { inherit pkgs; };