liminix/modules/ntp/default.nix

20 lines
431 B
Nix
Raw Normal View History

2023-07-23 00:22:45 +02:00
{ lib, pkgs, config, ...}:
let
inherit (lib) mkOption types;
in {
options = {
system.service.ntp = mkOption {
type = types.functionTo types.package;
};
};
config = {
system.service.ntp = pkgs.callPackage ./service.nix {};
users.ntp = {
uid = 52; gid= 52; gecos = "Unprivileged NTP user";
dir = "/run/ntp";
shell = "/bin/false";
};
# groups.system.usernames = ["ntp"];
};
}