mirror of
https://github.com/moons-14/dotfiles.git
synced 2026-10-06 05:48:12 +09:00
35 lines
604 B
Nix
35 lines
604 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.my.applications.docker;
|
|
in
|
|
{
|
|
options.my.applications.docker = {
|
|
enable = lib.mkEnableOption "Docker container runtime";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
autoPrune = {
|
|
enable = true;
|
|
dates = "weekly";
|
|
};
|
|
daemon.settings = {
|
|
ipv6 = true;
|
|
"fixed-cidr-v6" = "fd00:30::/64";
|
|
ip6tables = true;
|
|
};
|
|
};
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
docker # Container runtime
|
|
oxker # Docker TUI Tool
|
|
];
|
|
};
|
|
}
|