diff --git a/projects-old/ntpd-rs/default.nix b/projects-old/ntpd-rs/default.nix deleted file mode 100644 index bfc3069be..000000000 --- a/projects-old/ntpd-rs/default.nix +++ /dev/null @@ -1,15 +0,0 @@ -{ - pkgs, - lib, - sources, -}@args: -{ - packages = { - inherit (pkgs) ntpd-rs; - }; - nixos = { - modules.services.ntpd-rs = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/ntp/ntpd-rs.nix"; - tests.ntpd-rs = "${sources.inputs.nixpkgs}/nixos/tests/ntpd-rs.nix"; - examples = null; - }; -} diff --git a/projects/ntpd-rs/default.nix b/projects/ntpd-rs/default.nix new file mode 100644 index 000000000..cb8b80a19 --- /dev/null +++ b/projects/ntpd-rs/default.nix @@ -0,0 +1,35 @@ +{ + lib, + pkgs, + sources, +}@args: + +{ + metadata = { + summary = "Memory-safe implementation of IETF time standards including NTPv5 and NTS"; + subgrants = [ + "ntpd-rs" + ]; + links = { + website = { + text = "Project Pendulum"; + url = "https://tweedegolf.nl/en/pendulum"; + }; + docs = { + text = "ntpd-rs documentation"; + url = "https://docs.ntpd-rs.pendulum-project.org/"; + }; + }; + }; + + nixos.modules.services = { + ntpd-rs = { + name = "ntpd-rs"; + module = "${sources.inputs.nixpkgs}/nixos/modules/services/networking/ntp/ntpd-rs.nix"; + examples.basic = null; + # See https://github.com/NixOS/nixpkgs/blob/nixos-unstable/nixos/tests/ntpd-rs.nix for examples + }; + }; + + nixos.tests.ntpd-rs = "${sources.inputs.nixpkgs}/nixos/tests/ntpd-rs.nix"; +}