mirror of
https://github.com/sstent/nixos-cluster.git
synced 2026-04-05 12:32:55 +00:00
finish nomad, add consul, sops
This commit is contained in:
@@ -6,7 +6,6 @@
|
|||||||
...
|
...
|
||||||
}: let
|
}: let
|
||||||
secretstore = config._secretstore;
|
secretstore = config._secretstore;
|
||||||
|
|
||||||
# oldpkgs = import (builtins.fetchGit {
|
# oldpkgs = import (builtins.fetchGit {
|
||||||
# # Descriptive name to make the store path easier to identify
|
# # Descriptive name to make the store path easier to identify
|
||||||
# name = "git_consul_1_9";
|
# name = "git_consul_1_9";
|
||||||
@@ -14,17 +13,16 @@
|
|||||||
# ref = "refs/heads/nixpkgs-unstable";
|
# ref = "refs/heads/nixpkgs-unstable";
|
||||||
# rev = "3b05df1d13c1b315cecc610a2f3180f6669442f0";
|
# rev = "3b05df1d13c1b315cecc610a2f3180f6669442f0";
|
||||||
# }) {};
|
# }) {};
|
||||||
oldpkgs = import (builtins.fetchTarball {
|
# oldpkgs = import (builtins.fetchTarball {
|
||||||
url = "https://github.com/NixOS/nixpkgs/archive/3b05df1d13c1b315cecc610a2f3180f6669442f0.tar.gz";
|
# url = "https://github.com/NixOS/nixpkgs/archive/3b05df1d13c1b315cecc610a2f3180f6669442f0.tar.gz";
|
||||||
sha256 = "1dr7kfdl4wvxhml4hd9k77xszl55vbjbb6ssirs2qv53mgw8c24w";
|
# sha256 = "1dr7kfdl4wvxhml4hd9k77xszl55vbjbb6ssirs2qv53mgw8c24w";
|
||||||
}) {};
|
# }) {};
|
||||||
|
# myPkg = oldpkgs.consul;
|
||||||
myPkg = oldpkgs.consul;
|
|
||||||
in {
|
in {
|
||||||
# virtualisation.docker.enable = true;
|
# virtualisation.docker.enable = true;
|
||||||
sops.secrets.consul_encrypt = {};
|
sops.secrets.consul_encrypt = {};
|
||||||
services.consul = {
|
services.consul = {
|
||||||
package = myPkg;
|
# package = myPkg;
|
||||||
enable = true;
|
enable = true;
|
||||||
webUi = true;
|
webUi = true;
|
||||||
extraConfig = {
|
extraConfig = {
|
||||||
|
|||||||
Reference in New Issue
Block a user