No description
0d5b1172bd
Locking 25 packages to latest compatible versions Updating anstream v0.6.17 -> v0.6.18 Updating anstyle v1.0.9 -> v1.0.10 Updating axum v0.7.7 -> v0.7.9 Updating cc v1.1.31 -> v1.2.1 Updating clap v4.5.20 -> v4.5.21 Updating clap-verbosity-flag v2.2.2 -> v2.2.3 (latest: v3.0.0) Updating clap_builder v4.5.20 -> v4.5.21 Updating clap_lex v0.7.2 -> v0.7.3 Updating hyper v1.5.0 -> v1.5.1 Updating hyper-util v0.1.9 -> v0.1.10 Updating insta v1.40.0 -> v1.41.1 Updating itoa v1.0.11 -> v1.0.13 Updating libc v0.2.161 -> v0.2.164 Updating proc-macro2 v1.0.89 -> v1.0.92 Updating regex-automata v0.4.8 -> v0.4.9 Updating rustix v0.38.37 -> v0.38.41 Updating serde v1.0.213 -> v1.0.215 Updating serde_derive v1.0.213 -> v1.0.215 Updating serde_json v1.0.132 -> v1.0.133 Updating syn v2.0.85 -> v2.0.89 Updating sync_wrapper v1.0.1 -> v1.0.2 Updating thiserror v1.0.65 -> v1.0.69 (latest: v2.0.3) Updating thiserror-impl v1.0.65 -> v1.0.69 (latest: v2.0.3) Updating tokio v1.41.0 -> v1.41.1 Updating unicode-ident v1.0.13 -> v1.0.14 note: pass `--verbose` to see 24 unchanged dependencies behind latest |
||
---|---|---|
.cargo | ||
.forgejo/workflows | ||
flake-modules | ||
src | ||
.envrc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
README.md |
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;
# ...
};
}
];
};
# ...
};
}