No description
Find a file
forgejo-actions b1e184d186 chore: cargo update
Locking 21 packages to latest compatible versions
    Updating async-trait v0.1.82 -> v0.1.83
    Updating axum v0.7.5 -> v0.7.7
    Updating axum-core v0.4.3 -> v0.4.5
    Updating bytes v1.7.1 -> v1.7.2
    Updating cc v1.1.18 -> v1.1.23
    Updating clap v4.5.17 -> v4.5.18
    Updating clap_builder v4.5.17 -> v4.5.18
    Updating clap_derive v4.5.13 -> v4.5.18
    Updating hyper-util v0.1.8 -> v0.1.9
    Updating libc v0.2.158 -> v0.2.159
    Updating once_cell v1.19.0 -> v1.20.1
    Removing pin-project v1.1.5
    Removing pin-project-internal v1.1.5
      Adding portable-atomic v1.9.0
    Updating regex v1.10.6 -> v1.11.0
    Updating regex-automata v0.4.7 -> v0.4.8
    Updating regex-syntax v0.8.4 -> v0.8.5
    Updating rustix v0.38.36 -> v0.38.37
    Updating syn v2.0.77 -> v2.0.79
    Updating thiserror v1.0.63 -> v1.0.64
    Updating thiserror-impl v1.0.63 -> v1.0.64
    Updating tower v0.4.13 -> v0.5.1
    Updating unicode-width v0.1.13 -> v0.1.14 (latest: v0.2.0)
note: pass `--verbose` to see 23 unchanged dependencies behind latest
2024-09-30 16:41:08 +02:00
.cargo [feat] package: reduce rebuilds 2024-06-16 14:14:41 +02:00
.forgejo/workflows feat(ci): auto-update rust deps 2024-09-30 16:36:28 +02:00
src [fix] everything: various bugs found in production 2024-06-02 15:48:55 +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-09-30 16:41:08 +02:00
Cargo.toml [chore] Cargo.toml: bump version to 0.3.0-dev 2024-06-02 16:16:06 +02:00
default.nix fix(fmt): use nixfmt-rfc-style 2024-09-30 16:14:17 +02:00
flake.lock chore(flake.lock): update inputs 2024-09-30 16:19:39 +02:00
flake.nix feat(ci): auto-update rust deps 2024-09-30 16:36:28 +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;
            # ...
          };
        }
      ];
    };
    # ...
  };
}