No description
51f557c482
Updating anstream v0.6.15 -> v0.6.17 Updating anstyle v1.0.8 -> v1.0.9 Updating anstyle-parse v0.2.5 -> v0.2.6 Updating anstyle-query v1.1.1 -> v1.1.2 Updating anstyle-wincon v3.0.4 -> v3.0.6 Updating bytes v1.7.2 -> v1.8.0 Updating cc v1.1.30 -> v1.1.31 Updating colorchoice v1.0.2 -> v1.0.3 Updating hyper v1.4.1 -> v1.5.0 Updating libc v0.2.159 -> v0.2.161 Updating pin-project-lite v0.2.14 -> v0.2.15 Updating proc-macro2 v1.0.87 -> v1.0.89 Updating regex v1.11.0 -> v1.11.1 Updating rustversion v1.0.17 -> v1.0.18 Updating serde v1.0.210 -> v1.0.213 Updating serde_derive v1.0.210 -> v1.0.213 Updating serde_json v1.0.128 -> v1.0.132 Updating syn v2.0.79 -> v2.0.85 Updating thiserror v1.0.64 -> v1.0.65 Updating thiserror-impl v1.0.64 -> v1.0.65 Updating tokio v1.40.0 -> v1.41.0 Adding windows-sys v0.59.0 |
||
---|---|---|
.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;
# ...
};
}
];
};
# ...
};
}