23 lines
472 B
Nix
23 lines
472 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
let
|
|
cfg = config.homelab.virtualisation.containers;
|
|
in {
|
|
options.homelab.virtualisation.containers.enable = lib.mkEnableOption "OCI containers";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
nfs-utils
|
|
];
|
|
|
|
virtualisation = {
|
|
docker = {
|
|
enable = true;
|
|
enableOnBoot = true;
|
|
autoPrune.enable = true;
|
|
};
|
|
|
|
oci-containers.backend = "docker";
|
|
};
|
|
};
|
|
}
|