No description
a06a626eda
Locking 19 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.8 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 Updating clap_builder v4.5.20 -> v4.5.21 Updating clap_lex v0.7.2 -> v0.7.3 Updating hyper-util v0.1.9 -> v0.1.10 Updating insta v1.40.0 -> v1.41.1 Updating libc v0.2.161 -> v0.2.162 Updating regex-automata v0.4.8 -> v0.4.9 Updating rustix v0.38.37 -> v0.38.40 Updating serde v1.0.213 -> v1.0.215 Updating serde_derive v1.0.213 -> v1.0.215 Updating syn v2.0.85 -> v2.0.87 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 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;
# ...
};
}
];
};
# ...
};
}