base/chrony: split chrony into separate module

This commit is contained in:
2025-11-12 22:01:08 -08:00
parent 7e3d7d600b
commit 923ee385d9
3 changed files with 33 additions and 10 deletions

View File

@@ -28,6 +28,7 @@ in
imports = [
./borg-config.nix
./chrony.nix
./grafana-alloy.nix
./maintenance.nix
./network.nix

32
base/chrony.nix Normal file
View File

@@ -0,0 +1,32 @@
# Module: base/chrony
{
config,
lib,
pkgs,
pkgsUnstable,
inputs,
options,
...
}:
with lib;
let
cfg = config.chrony;
in
{
options.network = {
};
config = {
environment.systemPackages = [
pkgs.chrony
];
services.chrony = {
enable = true;
enableNTS = true;
serverOption = "iburst";
};
};
}

View File

@@ -32,10 +32,6 @@ in
};
config = {
environment.systemPackages = [
pkgs.chrony
];
services.tailscale = {
enable = true;
package = pkgsUnstable.tailscale;
@@ -67,11 +63,5 @@ in
'';
dnsovertls = "false";
};
services.chrony = {
enable = true;
enableNTS = true;
serverOption = "iburst";
};
};
}