aboutsummaryrefslogtreecommitdiffstats
path: root/hosts
diff options
context:
space:
mode:
authorMark Nipper <nipsy@bitgnome.net>2024-09-24 15:38:48 -0700
committerMark Nipper <nipsy@bitgnome.net>2024-09-24 15:38:48 -0700
commit4acfed6233ef387e4d615015b1eaf4ac508dd2b4 (patch)
treec5e1b0a78a1236d84cd090944c5327d96eef4617 /hosts
parente0ce36b9ea743a7b38ab81b27a96a394a224ab2e (diff)
downloadnix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.tar
nix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.tar.gz
nix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.tar.bz2
nix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.tar.lz
nix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.tar.xz
nix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.tar.zst
nix-4acfed6233ef387e4d615015b1eaf4ac508dd2b4.zip
Add chrony to arrakis and modularize configuration
Diffstat (limited to '')
-rw-r--r--hosts/arrakis/default.nix1
-rw-r--r--hosts/common/optional/services/chrony.nix8
-rw-r--r--hosts/darkstar/default.nix1
-rw-r--r--hosts/darkstar/services.nix2
4 files changed, 10 insertions, 2 deletions
diff --git a/hosts/arrakis/default.nix b/hosts/arrakis/default.nix
index 26017fb..313cdc0 100644
--- a/hosts/arrakis/default.nix
+++ b/hosts/arrakis/default.nix
@@ -27,6 +27,7 @@
../common/optional/multimedia.nix
../common/optional/pipewire.nix
../common/optional/sdr.nix
+ ../common/optional/services/chrony.nix
../common/optional/services/openssh.nix
../common/optional/services/xorg.nix
../common/optional/sound.nix
diff --git a/hosts/common/optional/services/chrony.nix b/hosts/common/optional/services/chrony.nix
new file mode 100644
index 0000000..2687846
--- /dev/null
+++ b/hosts/common/optional/services/chrony.nix
@@ -0,0 +1,8 @@
+{
+ services.chrony = {
+ enable = true;
+ extraConfig = ''
+ server time.cloudflare.com iburst nts
+ '';
+ };
+}
diff --git a/hosts/darkstar/default.nix b/hosts/darkstar/default.nix
index b867e2e..c397328 100644
--- a/hosts/darkstar/default.nix
+++ b/hosts/darkstar/default.nix
@@ -31,6 +31,7 @@
./services.nix
../common/core
../common/optional/services/asterisk.nix
+ ../common/optional/services/chrony.nix
../common/optional/services/kea.nix
../common/optional/services/nsd.nix
../common/optional/services/openssh.nix
diff --git a/hosts/darkstar/services.nix b/hosts/darkstar/services.nix
index 67bfc1b..e385bca 100644
--- a/hosts/darkstar/services.nix
+++ b/hosts/darkstar/services.nix
@@ -14,12 +14,10 @@
};
services.chrony = {
- enable = true;
extraConfig = ''
local stratum 3
binddevice enp116s0
allow 192.168.1/24
- server time.cloudflare.com iburst nts
'';
};