1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-23 12:42:01 +01:00
github.com-tboerger-nixos-c.../machines/modules/heimdall.nix
2022-05-19 16:17:09 +02:00

45 lines
805 B
Nix

{ pkgs, lib, config, options, ... }:
let
cfg = config.services.heimdall;
in
{
options = with lib; {
services.heimdall = {
enable = mkEnableOption "Heimdall";
};
};
config = with lib; mkIf cfg.enable {
# virtualisation = {
# oci-containers = {
# containers = {
# heimdall = {
# image = "ghcr.io/linuxserver/heimdall:version-2.4.7";
# autoStart = true;
# extraOptions = [
# "--name heimdall"
# ];
# volumes = [
# "/var/lib/heimdall:/config"
# ];
# ports = [
# "8011:80/tcp"
# ];
# environment = {
# FOO = "bar";
# };
# };
# };
# };
# };
};
}