docker: Update module to reflect it is actually configuring podman

This commit is contained in:
Erwin Boskma 2023-12-20 11:25:45 +01:00
parent 04f93a5497
commit e6f7adb423
Signed by: erwin
SSH key fingerprint: SHA256:OCinH/khuGY1LA9RG8YLM8GNH6C1DDXBdy3SNE+I5Hw
6 changed files with 16 additions and 19 deletions

View file

@ -11,7 +11,7 @@
enable = true;
server = true;
};
docker.enable = true;
podman.enable = true;
# drone.enable = true;
nix-common = {
enable = true;

View file

@ -40,7 +40,6 @@
enable = true;
wayland = true;
};
docker.enable = true;
element-web.enable = false;
fonts.enable = true;
gnome.enable = true;
@ -63,6 +62,7 @@
enable = true;
cross-systems = [ "aarch64-linux" ];
};
podman.enable = true;
tablet.enable = false;
sound = {
enable = true;

View file

@ -42,7 +42,7 @@
enable = true;
wayland = true;
};
docker = {
podman = {
enable = true;
enableNvidia = true;
# enableTcpSocket = true;

View file

@ -4,17 +4,16 @@
, ...
}:
with lib; let
cfg = config.eboskma.docker;
cfg = config.eboskma.podman;
in
{
options.eboskma.docker = {
enable = mkEnableOption "docker";
enableNvidia = mkEnableOption "docker NVidia support";
# enableTcpSocket = mkEnableOption "docker TCP socket";
options.eboskma.podman = {
enable = mkEnableOption "podman";
enableNvidia = mkEnableOption "podman NVidia support";
# enableTcpSocket = mkEnableOption "podman TCP socket";
};
config = mkIf cfg.enable {
# environment.systemPackages = with pkgs; [ docker-compose ];
environment.systemPackages = [ pkgs.podman-compose pkgs.netavark ];
virtualisation.podman = {
@ -27,12 +26,6 @@ in
dates = "weekly";
};
# daemon.settings = {
# insecure-registries = config.virtualisation.containers.registries.insecure;
# features = {
# buildkit = true;
# };
# };
defaultNetwork.settings.dns_enable = true;
};
@ -52,13 +45,17 @@ in
"${pkgs.podman}/libexec/podman"
];
};
containers = {
log_driver = "k8s-file";
events_logger = "journald";
};
};
};
users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "docker" "podman" ];
users.extraUsers.${config.eboskma.var.mainUser}.extraGroups = [ "podman" ];
# Make DNS work in containers
networking.firewall.interfaces."podman+" = {
networking.firewall.interfaces."podman*" = {
allowedUDPPorts = [ 53 ];
allowedTCPPorts = [ 53 ];
};

View file

@ -11,7 +11,7 @@ in
options.eboskma.element-web = { enable = mkEnableOption "activate element-web"; };
config = mkIf cfg.enable {
eboskma.docker.enable = true;
eboskma.podman.enable = true;
virtualisation.oci-containers.containers = {
element-web = {

View file

@ -19,7 +19,7 @@ in
};
config = mkIf cfg.enable {
eboskma.docker.enable = true;
eboskma.podman.enable = true;
virtualisation.oci-containers.containers = {
livebook = {