mirror of
https://github.com/tboerger/nixos-config
synced 2024-11-23 12:42:01 +01:00
29 lines
411 B
Nix
29 lines
411 B
Nix
{ pkgs, lib, config, options, ... }:
|
|
with lib;
|
|
|
|
let
|
|
cfg = config.personal.services.timesyncd;
|
|
|
|
in
|
|
{
|
|
options = {
|
|
personal = {
|
|
services = {
|
|
timesyncd = {
|
|
enable = mkEnableOption "Timesyncd" // {
|
|
default = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
services = {
|
|
timesyncd = {
|
|
enable = true;
|
|
};
|
|
};
|
|
};
|
|
}
|