diff options
author | Alex Auvolat <alex@adnab.me> | 2021-11-18 16:40:19 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-11-18 16:40:19 +0100 |
commit | cdd4e2211ac90d55f528bb880d86ef1bf524c484 (patch) | |
tree | d49eddf2a3bc54fa1c5b6d89d93eeec530676a4d /site/pluton.nix | |
parent | 777896a434d6d7ac603557546b2aa0525de62966 (diff) | |
download | nixcfg-cdd4e2211ac90d55f528bb880d86ef1bf524c484.tar.gz nixcfg-cdd4e2211ac90d55f528bb880d86ef1bf524c484.zip |
Nomad config
Diffstat (limited to 'site/pluton.nix')
-rw-r--r-- | site/pluton.nix | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/site/pluton.nix b/site/pluton.nix new file mode 100644 index 0000000..ec94018 --- /dev/null +++ b/site/pluton.nix @@ -0,0 +1,13 @@ +{ config, pkgs, ... }: + +{ + networking.defaultGateway = { + address = "192.168.0.1"; + interface = "enp0s25"; + }; + + services.consul.extraConfig.datacenter = "pluton"; + services.nomad.settings.datacenter = "pluton"; + services.consul.extraConfig.bootstrap_expect = 1; + services.nomad.settings.server.bootstrap_expect = 1; +} |