+14
README.md
+14
README.md
···+these are set of nixos modules for more convenient deployment of cloud resources for various providers. only implemented module is for firewalls right now, supporting hetzner.+- for flakes use the flake output `makeApps` and `makeApps {inherit pkgs self;}`. you can assign the output of this to your `outputs.apps` as it generates flake apps.+- for non-flake use `import ./makeApps.nix {inherit pkgs nixosSystem;}`, this will return an attribute set with a `run` key which is the generated app.
+9
firewall/hetzner/app.nix
+9
firewall/hetzner/app.nix
···
+40
firewall/hetzner/app.nu
+40
firewall/hetzner/app.nu
···+let auth_token: string = if $auth_token == null { $env.HETZNER_API_TOKEN? } else { $auth_token }
+32
firewall/hetzner/default.nix
+32
firewall/hetzner/default.nix
···+Function that generates a script for this provider, pass it an instance of nixpkgs and run to apply the configuration.+For this app to work, you need to set the `HETZNER_API_TOKEN` environment variable to a valid API token from Hetzner.
+29
firewall/hetzner/rules.nix
+29
firewall/hetzner/rules.nix
···
-37
firewall/provider/hetzner/app.nu
-37
firewall/provider/hetzner/app.nu
···-let resp = $in | http post -e --full -H authHeader --content-type application/json (makeApiUrl path)
-56
firewall/provider/hetzner/default.nix
-56
firewall/provider/hetzner/default.nix
···-For this to work, you need to set the `HETZNER_API_TOKEN` environment variable to a valid API token from Hetzner.
+37
-3
flake.nix
+37
-3
flake.nix
···
+57
makeApps.nix
+57
makeApps.nix
···