aboutsummaryrefslogtreecommitdiff
path: root/site/neptune.nix
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2021-11-18 16:40:19 +0100
committerAlex Auvolat <alex@adnab.me>2021-11-18 16:40:19 +0100
commitcdd4e2211ac90d55f528bb880d86ef1bf524c484 (patch)
treed49eddf2a3bc54fa1c5b6d89d93eeec530676a4d /site/neptune.nix
parent777896a434d6d7ac603557546b2aa0525de62966 (diff)
downloadnixcfg-cdd4e2211ac90d55f528bb880d86ef1bf524c484.tar.gz
nixcfg-cdd4e2211ac90d55f528bb880d86ef1bf524c484.zip
Nomad config
Diffstat (limited to 'site/neptune.nix')
-rw-r--r--site/neptune.nix24
1 files changed, 24 insertions, 0 deletions
diff --git a/site/neptune.nix b/site/neptune.nix
new file mode 100644
index 0000000..7fa6252
--- /dev/null
+++ b/site/neptune.nix
@@ -0,0 +1,24 @@
+{ config, pkgs, ... }:
+
+{
+ networking.defaultGateway = {
+ address = "192.168.1.254";
+ interface = "eno1";
+ };
+
+ services.consul.extraConfig.datacenter = "neptune";
+ services.nomad.settings.datacenter = "neptune";
+ services.consul.extraConfig.bootstrap_expect = 3;
+ services.nomad.settings.server.bootstrap_expect = 3;
+
+ # ----
+
+ nix = {
+ binaryCaches = [
+ "http://binarycache.home.adnab.me"
+ ];
+ binaryCachePublicKeys = [
+ "binarycache.home.adnab.me:ErR6pMnewf9oVyZJd5uC2nI4EZF49c7Mh86eDZWYZaw="
+ ];
+ };
+}