webnsupdate: Init at version 0.1.0
This commit is contained in:
commit
43d62fa7d6
10 changed files with 2320 additions and 0 deletions
43
flake.nix
Normal file
43
flake.nix
Normal file
|
@ -0,0 +1,43 @@
|
|||
{
|
||||
description = "An http server that calls nsupdate internally";
|
||||
|
||||
inputs.nixpkgs.url = "nixpkgs/nixos-unstable";
|
||||
|
||||
outputs = {
|
||||
self,
|
||||
nixpkgs,
|
||||
}: let
|
||||
supportedSystems = ["x86_64-linux" "aarch64-darwin" "x86_64-darwin" "aarch64-linux"];
|
||||
forEachSupportedSystem = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||
f {
|
||||
inherit system;
|
||||
pkgs = import nixpkgs {inherit system;};
|
||||
});
|
||||
in {
|
||||
formatter = forEachSupportedSystem ({pkgs, ...}: pkgs.alejandra);
|
||||
|
||||
# checks = forEachSupportedSystem ({pkgs, ...}: {
|
||||
# module = pkgs.testers.runNixOSTest {
|
||||
# name = "webnsupdate module test";
|
||||
# nodes.testMachine = {imports = [self.nixosModules.default];};
|
||||
# };
|
||||
# });
|
||||
|
||||
packages = forEachSupportedSystem ({pkgs, ...}: {
|
||||
default = pkgs.callPackage ./default.nix {};
|
||||
});
|
||||
|
||||
overlays.default = final: prev: {
|
||||
webnsupdate = final.callPackage ./default.nix {};
|
||||
};
|
||||
|
||||
nixosModules.default = ./module.nix;
|
||||
|
||||
devShells = forEachSupportedSystem ({pkgs, ...}: {
|
||||
default = pkgs.mkShell {
|
||||
packages = [pkgs.cargo-insta];
|
||||
};
|
||||
});
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue