diff options
| author | Franck Cuny <franck@fcuny.net> | 2022-05-25 19:39:32 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2022-05-25 19:39:32 -0700 |
| commit | a4c74ea0decb9c6e04b9abb5124b81438940d07f (patch) | |
| tree | 1fc0893b7685b42363168ebcdcce0ba04760222f /flake.nix | |
| parent | ref(notes): drop flake.nix (diff) | |
| download | infra-a4c74ea0decb9c6e04b9abb5124b81438940d07f.tar.gz | |
ref(dnsupdate): move under tools
Integrate properly the tool `dnsupdate` with flake.nix, by adding a
default.nix inside its directory.
Having all the tools under a directory named `tools` is easier to reason
about. I don't need a go.mod at the top level directory either, each
tool will have its own.
Diffstat (limited to '')
| -rw-r--r-- | flake.nix | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -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; }; |
