Skip to content

Commit

Permalink
common: configure timesyncd
Browse files Browse the repository at this point in the history
  • Loading branch information
peterablehmann committed Jan 10, 2025
1 parent e13224a commit 71a3489
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/common/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
./nix.nix
./ssh.nix
./tailscale.nix
./timesyncd.nix
./users.nix
];

Expand Down
10 changes: 10 additions & 0 deletions modules/common/timesyncd.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{ config
, ...
}:
{
services.timesyncd = {
enable = true;
servers = config.networking.timeServers;
fallbackServers = null;
};
}

0 comments on commit 71a3489

Please sign in to comment.