distrobox
This commit is contained in:
@@ -24,7 +24,7 @@ let
|
||||
proxy_http_version 1.1;
|
||||
'';
|
||||
};
|
||||
enableDocker = lib.any (opt: opt) [
|
||||
enableContainers = lib.any (opt: opt) [
|
||||
config.my.servers.collabora.enable
|
||||
config.my.servers.ryot.enable
|
||||
config.my.servers.lidarr.enable
|
||||
@@ -103,8 +103,10 @@ in {
|
||||
default = "CaptainJawZ@protonmail.com";
|
||||
description = "localhost smtp email";
|
||||
};
|
||||
enableContainers = lib.mkEnableOption "enable";
|
||||
};
|
||||
config = {
|
||||
my.enableContainers = lib.mkDefault false;
|
||||
my.servers = {
|
||||
jellyfin = {
|
||||
enable = lib.mkDefault false;
|
||||
@@ -143,7 +145,7 @@ in {
|
||||
virtualisation = {
|
||||
containers.enable = true;
|
||||
oci-containers.backend = "podman";
|
||||
podman = lib.mkIf enableDocker {
|
||||
podman = lib.mkIf enableContainers {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
dockerSocket.enable = true;
|
||||
@@ -155,7 +157,7 @@ in {
|
||||
};
|
||||
};
|
||||
};
|
||||
security.acme = lib.mkIf config.services.nginx.enable {
|
||||
security.acme = lib.mkIf (config.services.nginx.enable || config.my.enableContainers) {
|
||||
acceptTerms = true;
|
||||
defaults.email = config.my.email;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user