No description
Find a file
forgejo-actions 6b4c0c4865
All checks were successful
/ build (push) Successful in 1s
/ check (push) Successful in 7s
/ report-size (push) Successful in 2s
chore: cargo update
Locking 31 packages to latest compatible versions
    Updating bytes v1.8.0 -> v1.9.0
    Updating cc v1.2.1 -> v1.2.5
    Updating clap v4.5.21 -> v4.5.23
    Updating clap-verbosity-flag v3.0.0 -> v3.0.2
    Updating clap_builder v4.5.21 -> v4.5.23
    Updating clap_lex v0.7.3 -> v0.7.4
    Updating console v0.15.8 -> v0.15.10
    Updating encode_unicode v0.3.6 -> v1.0.0
    Updating errno v0.3.9 -> v0.3.10
    Removing hermit-abi v0.3.9
    Updating http v1.1.0 -> v1.2.0
    Updating hyper v1.5.1 -> v1.5.2
    Updating itoa v1.0.13 -> v1.0.14
    Updating libc v0.2.164 -> v0.2.169
    Updating miette v7.2.0 -> v7.4.0
    Updating miette-derive v7.2.0 -> v7.4.0
    Updating miniz_oxide v0.8.0 -> v0.8.2
    Updating mio v1.0.2 -> v1.0.3
    Updating rustix v0.38.41 -> v0.38.42
    Updating serde v1.0.215 -> v1.0.216
    Updating serde_derive v1.0.215 -> v1.0.216
    Removing smawk v0.3.2
    Updating socket2 v0.5.7 -> v0.5.8
    Updating supports-color v3.0.1 -> v3.0.2
    Updating supports-hyperlinks v3.0.0 -> v3.1.0
    Updating syn v2.0.89 -> v2.0.90
    Removing sync_wrapper v0.1.2
    Updating terminal_size v0.3.0 -> v0.4.1
    Updating tokio v1.41.1 -> v1.42.0
    Updating tower v0.5.1 -> v0.5.2
    Updating tracing v0.1.40 -> v0.1.41
    Updating tracing-attributes v0.1.27 -> v0.1.28
    Updating tracing-core v0.1.32 -> v0.1.33
    Updating tracing-subscriber v0.3.18 -> v0.3.19
    Removing windows-sys v0.48.0
    Removing windows-targets v0.48.5
    Removing windows_aarch64_gnullvm v0.48.5
    Removing windows_aarch64_msvc v0.48.5
    Removing windows_i686_gnu v0.48.5
    Removing windows_i686_msvc v0.48.5
    Removing windows_x86_64_gnu v0.48.5
    Removing windows_x86_64_gnullvm v0.48.5
    Removing windows_x86_64_msvc v0.48.5
note: pass `--verbose` to see 12 unchanged dependencies behind latest
2024-12-22 00:46:26 +01:00
.cargo feat: switch to crane 2024-10-28 21:55:53 +01:00
.forgejo/workflows feat(ci): generate package size report 2024-12-22 00:41:52 +01:00
flake-modules fix: overlay was broken T-T 2024-10-28 22:41:12 +01:00
src fix(clippy): enable more lints and fix issues 2024-11-23 21:12:27 +01: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-12-22 00:46:26 +01:00
Cargo.toml chore: bump version to dev 2024-11-23 21:26:47 +01:00
flake.lock chore(flake.lock): update inputs 2024-12-22 00:43:41 +01:00
flake.nix feat: switch to crane 2024-10-28 21:55:53 +01:00
LICENSE webnsupdate: Init at version 0.1.0 2024-05-08 21:37:19 +02:00
README.md webnsupdate: Init at version 0.1.0 2024-05-08 21:37:19 +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;
            # ...
          };
        }
      ];
    };
    # ...
  };
}