Move declarative containers to a new module
This commit is contained in:
parent
0896b18073
commit
22067b477a
@ -203,6 +203,7 @@ with pkgs;
|
||||
./modules/communication.nix
|
||||
./modules/information.nix
|
||||
./modules/device.nix
|
||||
./modules/containers.nix
|
||||
];
|
||||
|
||||
}
|
||||
|
26
modules/containers.nix
Normal file
26
modules/containers.nix
Normal file
@ -0,0 +1,26 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Podman setup
|
||||
virtualisation = {
|
||||
containers.enable = true;
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
extraPackages = with pkgs; [ zfs ];
|
||||
};
|
||||
|
||||
oci-containers = {
|
||||
backend = "podman";
|
||||
containers = {
|
||||
# Openbooks configuration
|
||||
openbooks = {
|
||||
image =
|
||||
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
|
||||
ports = [ "127.0.0.1:9000:80" ];
|
||||
cmd = [ "--name" "bookworm" "--searchbot" "searchook" "--persist" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -31,27 +31,4 @@
|
||||
# Set environment variable pointing to wallabag configuration directory
|
||||
environment.variables.WALLABAG_DATA = "/var/lib/wallabag";
|
||||
|
||||
# Podman setup
|
||||
virtualisation = {
|
||||
containers.enable = true;
|
||||
podman = {
|
||||
enable = true;
|
||||
dockerCompat = true;
|
||||
extraPackages = with pkgs; [ zfs ];
|
||||
};
|
||||
|
||||
# Openbooks configuration
|
||||
oci-containers = {
|
||||
backend = "podman";
|
||||
containers = {
|
||||
openbooks = {
|
||||
image =
|
||||
"evanbuss/openbooks@sha256:16609c3da954715f8f98b5de6c838146914ae700b2a700b4d9aad8b23c9217da";
|
||||
ports = [ "127.0.0.1:9000:80" ];
|
||||
cmd = [ "--name" "bookworm" "--searchbot" "searchook" "--persist" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user