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.
usage#
if using flakes, put nixosModules.<resource> and nixosModules.<resource>-<provider>
in your NixOS configuration. for example, nixosModules.firewall and
nixosModules.firewall-hetzner. see nix flake show for all available modules.
if not using flakes, you can import <resource>/ and <resource>/<provider>.
then, you can either use each module's individual mkApp config option to
generate an app and run it, or you can call makeApps:
- for flakes use the flake output
makeAppsandmakeApps {inherit pkgs self;}. you can assign the output of this to youroutputs.appsas it generates flake apps. - for non-flake use
import ./makeApps.nix {inherit pkgs nixosSystem;}, this will return an attribute set with arunkey which is the generated app.