No description
Find a file
forgejo-actions 51f557c482
All checks were successful
/ check (push) Successful in 5s
/ build (push) Successful in 1m1s
chore: cargo update
Updating anstream v0.6.15 -> v0.6.17
    Updating anstyle v1.0.8 -> v1.0.9
    Updating anstyle-parse v0.2.5 -> v0.2.6
    Updating anstyle-query v1.1.1 -> v1.1.2
    Updating anstyle-wincon v3.0.4 -> v3.0.6
    Updating bytes v1.7.2 -> v1.8.0
    Updating cc v1.1.30 -> v1.1.31
    Updating colorchoice v1.0.2 -> v1.0.3
    Updating hyper v1.4.1 -> v1.5.0
    Updating libc v0.2.159 -> v0.2.161
    Updating pin-project-lite v0.2.14 -> v0.2.15
    Updating proc-macro2 v1.0.87 -> v1.0.89
    Updating regex v1.11.0 -> v1.11.1
    Updating rustversion v1.0.17 -> v1.0.18
    Updating serde v1.0.210 -> v1.0.213
    Updating serde_derive v1.0.210 -> v1.0.213
    Updating serde_json v1.0.128 -> v1.0.132
    Updating syn v2.0.79 -> v2.0.85
    Updating thiserror v1.0.64 -> v1.0.65
    Updating thiserror-impl v1.0.64 -> v1.0.65
    Updating tokio v1.40.0 -> v1.41.0
      Adding windows-sys v0.59.0
2024-10-27 09:31:43 +01:00
.cargo feat: refactor and add ip saving 2024-10-13 00:54:54 +02:00
.forgejo/workflows fix(ci): do not use a name when logging in 2024-10-12 22:19:00 +02:00
src feat: refactor and add ip saving 2024-10-13 00:54:54 +02:00
.envrc [feat] flake.nix: add envrc to run nix develop 2024-06-02 15:49:28 +02:00
.gitignore [feat] flake.nix: add envrc to run nix develop 2024-06-02 15:49:28 +02:00
Cargo.lock chore: cargo update 2024-10-27 09:31:43 +01:00
Cargo.toml feat: refactor and add ip saving 2024-10-13 00:54:54 +02:00
default.nix feat: refactor and add ip saving 2024-10-13 00:54:54 +02:00
flake.lock refactor(flake): use flake-parts 2024-10-12 22:34:57 +02:00
flake.nix refactor(flake): use flake-parts 2024-10-12 22:34:57 +02:00
LICENSE webnsupdate: Init at version 0.1.0 2024-05-08 21:37:19 +02:00
module.nix fix(fmt): use nixfmt-rfc-style 2024-09-30 16:14:17 +02:00
README.md webnsupdate: Init at version 0.1.0 2024-05-08 21:37:19 +02:00
run-cmd.nix fix(fmt): use nixfmt-rfc-style 2024-09-30 16:14:17 +02:00

Web NS update

A webserver API for nsupdate. This is only intended for my usecase, so feel free to take inspiration, but don't expect this to be useful to you.

Usage

Note

This was made because I needed it. It probably wont fit your usecase.

Using a flake NixOS configuration add these lines:

{
  inputs.webnsupdate.url = "github:jalil-salame/webnsupdate";
  # inputs.webnsupdate.inputs.nixpkgs.follows = "nixpkgs"; # deduplicate nixpkgs

  # ...
  outputs = {
    nixpkgs,
    webnsupdate,
    ...
  }: {
    # ...
    nixosConfigurations.hostname = let
      system = "...";
      pkgs = import nixpkgs {
        inherit system;
        # IMPORTANT -----------v
        overlays = [webnsupdate.overlays.default];
      };
    in {
      inherit system pkgs;
      modules = [
        webnsupdate.nixosModules.default
        {
          services.webnsupdate = {
            enable = true;
            # ...
          };
        }
      ];
    };
    # ...
  };
}