1
0
mirror of https://github.com/tboerger/nixos-config synced 2024-11-26 07:43:45 +01:00
github.com-tboerger-nixos-c.../shared/services/docker.nix

42 lines
602 B
Nix
Raw Normal View History

2022-09-27 22:07:46 +02:00
{ pkgs, lib, config, options, ... }:
with lib;
let
cfg = config.personal.services.docker;
in
{
options = {
personal = {
services = {
docker = {
enable = mkEnableOption "Docker";
};
};
};
};
config = mkIf cfg.enable {
2024-07-17 16:05:33 +02:00
environment = {
systemPackages = with pkgs; [
lazydocker
];
};
2022-09-27 22:07:46 +02:00
virtualisation = {
docker = {
enable = true;
autoPrune = {
enable = true;
dates = "weekly";
};
};
2024-07-17 16:05:33 +02:00
oci-containers = {
backend = "docker";
};
2022-09-27 22:07:46 +02:00
};
};
}