1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00

nixos/servnerr-3: replace docker with podman, nixfmt

Signed-off-by: Matt Layher <mdlayher@gmail.com>
This commit is contained in:
Matt Layher 2020-10-27 16:17:18 -04:00
parent 1d49df371e
commit 558db6defe
No known key found for this signature in database
GPG key ID: 77BFE531397EDE94
2 changed files with 11 additions and 12 deletions

View file

@ -4,8 +4,7 @@
{ lib, pkgs, ... }:
let
vars = import ./lib/vars.nix;
let vars = import ./lib/vars.nix;
in {
imports = [
@ -136,10 +135,7 @@ in {
RuntimeWatchdogSec=60s
'';
virtualisation = {
docker.enable = true;
libvirtd.enable = true;
};
virtualisation.libvirtd.enable = true;
# root SSH key for remote builds.
users.users.root.openssh.authorizedKeys.keys = [

View file

@ -40,12 +40,15 @@
};
};
docker-containers = {
# promlens running on TCP/9091 adjacent to Prometheus.
promlens = {
image = "promlabs/promlens";
ports = [ "9091:8080" ];
volumes = [ "/var/lib/promlens:/var/lib/promlens" ];
virtualisation.oci-containers = {
backend = "podman";
containers = {
# promlens running on TCP/9091 adjacent to Prometheus.
promlens = {
image = "promlabs/promlens";
ports = [ "9091:8080" ];
volumes = [ "/var/lib/promlens:/var/lib/promlens" ];
};
};
};
}