sisyphus/nixos/modules/virtualisation/docker/default.nix

18 lines
421 B
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
let
cfg = config.sisyphus.virtualisation.docker;
in {
options.sisyphus.virtualisation.docker.enable = lib.mkEnableOption "Docker";
config = lib.mkIf cfg.enable {
2023-12-07 20:24:37 +01:00
virtualisation.docker = {
enable = true;
2024-03-20 21:36:56 +01:00
# Because these are made for development purposes and not for servers
enableOnBoot = false;
2023-12-07 20:24:37 +01:00
};
2024-06-02 20:49:04 +02:00
hardware.nvidia-container-toolkit.enable = true;
};
}