mirror of
https://github.com/Stunkymonkey/nixos.git
synced 2025-05-24 18:04:41 +02:00
22 lines
429 B
Nix
22 lines
429 B
Nix
# Docker related settings
|
|
{ config, inputs, lib, options, pkgs, ... }:
|
|
let
|
|
cfg = config.my.system.docker;
|
|
in
|
|
{
|
|
options.my.system.docker = with lib; {
|
|
enable = mkEnableOption "docker configuration";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
environment.systemPackages = with pkgs; [
|
|
docker
|
|
docker-compose
|
|
];
|
|
|
|
virtualisation.docker = {
|
|
enable = true;
|
|
autoPrune.enable = true;
|
|
};
|
|
};
|
|
}
|