nixos modules for convenient deployment of cloud resources
Nix 78.5%
Nushell 21.5%
19 1 0

Clone this repository

https://tangled.org/ptr.pet/nixos-cloud-resources
git@knot.gaze.systems:ptr.pet/nixos-cloud-resources

For self-hosted knots, clone URLs may differ based on your setup.

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.

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 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.