No description
b1e184d186
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 |
||
---|---|---|
.cargo | ||
.forgejo/workflows | ||
src | ||
.envrc | ||
.gitignore | ||
Cargo.lock | ||
Cargo.toml | ||
default.nix | ||
flake.lock | ||
flake.nix | ||
LICENSE | ||
module.nix | ||
README.md | ||
run-cmd.nix |
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;
# ...
};
}
];
};
# ...
};
}