mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-02-05 03:51:36 +00:00
finish nomad, add consul, sops
This commit is contained in:
@@ -6,11 +6,21 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
secretstore = config._secretstore;
|
secretstore = config._secretstore;
|
||||||
|
|
||||||
|
pkgs = import (builtins.fetchGit {
|
||||||
|
# Descriptive name to make the store path easier to identify
|
||||||
|
name = "my-old-revision";
|
||||||
|
url = "https://github.com/NixOS/nixpkgs/";
|
||||||
|
ref = "refs/heads/nixpkgs-unstable";
|
||||||
|
rev = "3b05df1d13c1b315cecc610a2f3180f6669442f0";
|
||||||
|
}) {};
|
||||||
|
|
||||||
|
myPkg = pkgs.consul;
|
||||||
in {
|
in {
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
sops.secrets.consul_encrypt = {};
|
sops.secrets.consul_encrypt = {};
|
||||||
services.consul = {
|
services.consul = {
|
||||||
package = pkgs.consul_1_9;
|
package = myPkg;
|
||||||
enable = true;
|
enable = true;
|
||||||
webUi = true;
|
webUi = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user