diff options
Diffstat (limited to '')
-rw-r--r-- | flake.nix | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/flake.nix b/flake.nix index ae89d70..fb00e4a 100644 --- a/flake.nix +++ b/flake.nix @@ -52,7 +52,17 @@ pkgs = import inputs.nixpkgs { inherit system; }; home-manager = inputs.home-manager.defaultPackage."${system}"; in { - packages = pkgs // { inherit home-manager; }; + 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/ + ''; + }; checks = { pre-commit-check = inputs.pre-commit-hooks.lib.${system}.run { @@ -70,6 +80,8 @@ rnix-lsp home-manager git + go + gopls ]; }; }); |