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:
parent
1d49df371e
commit
558db6defe
2 changed files with 11 additions and 12 deletions
|
@ -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 = [
|
||||
|
|
|
@ -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" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue