fix: Use ens ntp for some machines

This commit is contained in:
sinavir 2025-03-14 02:50:28 +01:00
parent 26833e7b64
commit 2aac734fa6
No known key found for this signature in database
5 changed files with 29 additions and 1 deletions

View file

@ -8,6 +8,7 @@ lib.extra.mkConfig {
enabledModules = [
# List of modules to enable
"dgn-backups"
"dgn-ens-ntp"
];
enabledServices = [

View file

@ -8,6 +8,7 @@ lib.extra.mkConfig {
enabledModules = [
# List of modules to enable
"dgn-backups"
"dgn-ens-ntp"
];
enabledServices = [

View file

@ -5,7 +5,9 @@
{ lib, ... }:
lib.extra.mkConfig {
enabledModules = [ ];
enabledModules = [
"dgn-ens-ntp"
];
enabledServices = [
"garage"

View file

@ -20,6 +20,7 @@
"dgn-backups"
"dgn-console"
"dgn-chatops"
"dgn-ens-ntp"
"dgn-firewall"
"dgn-forgejo-runners"
"dgn-hardware"

View file

@ -0,0 +1,23 @@
# SPDX-FileCopyrightText: 2025 Maurice Debray <maurice@dgnum.eu>
#
# SPDX-License-Identifier: EUPL-1.2
{ config, lib, ... }:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.dgn-ens-ntp;
in
{
options.dgn-ens-ntp.enable = mkEnableOption "the use of ens and hackens NTP servers.";
config = mkIf cfg.enable {
networking.timeServers = [
"ntp.ens.fr"
"cave.hackens.org"
];
};
}