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

23 lines
530 B
Nix
Raw Permalink 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
2024-10-25 16:17:58 +02:00
# Updated version of deprecated enableNvidia.
2024-06-02 20:49:04 +02:00
hardware.nvidia-container-toolkit.enable = true;
2024-10-25 16:17:58 +02:00
sisyphus.users.wantedGroups = [
"docker"
];
};
}