feat(ada): ntps-rs init
Signed-off-by: s0me1newithhand7s <git+me@hand7s.org>
This commit is contained in:
parent
d03a563188
commit
58c5ffdb54
3 changed files with 33 additions and 5 deletions
|
|
@ -1,9 +1,5 @@
|
|||
_: {
|
||||
networking = {
|
||||
timeServers = [
|
||||
"time.cloudflare.com"
|
||||
"time.google.com"
|
||||
"ru.pool.ntp.org"
|
||||
];
|
||||
timeServers = [];
|
||||
};
|
||||
}
|
||||
|
|
|
|||
25
ada/services/ntpd-rs.nix
Normal file
25
ada/services/ntpd-rs.nix
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
_: {
|
||||
services = {
|
||||
ntpd-rs = {
|
||||
enable = true;
|
||||
useNetworkingTimeServers = false;
|
||||
|
||||
settings = {
|
||||
source = [
|
||||
{
|
||||
mode = "nts";
|
||||
address = "time.cloudflare.com";
|
||||
}
|
||||
{
|
||||
mode = "nts";
|
||||
address = "nts.netnod.se";
|
||||
}
|
||||
{
|
||||
mode = "nts";
|
||||
address = "ptbtime1.ptb.de";
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
7
ada/services/timesyncd.nix
Normal file
7
ada/services/timesyncd.nix
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
_: {
|
||||
services = {
|
||||
timesyncd = {
|
||||
enable = false;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue