1
0
Fork 0
mirror of https://github.com/mdlayher/homelab.git synced 2024-12-14 11:47:32 +00:00
mdlayher-homelab/nixos/servnerr-3/containers.nix
Matt Layher 0f43f40131
nixos: fix nix-linter issues
Signed-off-by: Matt Layher <mdlayher@gmail.com>
2020-07-08 10:22:48 -04:00

51 lines
1.2 KiB
Nix

{ ... }:
{
containers = {
# Plex server running containerized and on unstable for faster updates.
plex = {
autoStart = true;
bindMounts = {
# Mount the ZFS pool as read-only.
"/primary/media" = {
hostPath = "/primary/media";
isReadOnly = true;
};
};
config = { ... }:
let
unstable =
import <nixos-unstable-small> { config.allowUnfree = true; };
in {
services.plex = {
enable = true;
package = unstable.plex;
};
};
};
# UniFi controller running containerized and on unstable for faster updates.
unifi = {
autoStart = true;
config = { ... }:
let
unstable =
import <nixos-unstable-small> { config.allowUnfree = true; };
in {
services.unifi = {
enable = true;
unifiPackage = unstable.unifi;
};
};
};
};
docker-containers = {
# promlens running on TCP/9091 adjacent to Prometheus.
promlens = {
image = "promlabs/promlens";
ports = [ "9091:8080" ];
volumes = [ "/var/lib/promlens:/var/lib/promlens" ];
};
};
}