I showed you my source code, pls respond
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

32 lines
689 B

  1. # This file is controlled by /etc/dotfiles/README.org
  2. { config, options, lib, pkgs, ... }:
  3. with lib;
  4. with lib.types;
  5. let cfg = config.modules.docker;
  6. in {
  7. options.modules.docker = {
  8. enable = mkOption {
  9. type = bool;
  10. default = false;
  11. };
  12. };
  13. config = mkIf cfg.enable {
  14. # Enable the docker virutalization platform.
  15. virtualisation.docker = {
  16. enable = true;
  17. enableOnBoot = true;
  18. autoPrune.enable = true;
  19. };
  20. # Required for the `docker' command.
  21. users.users.chris.extraGroups = [ "docker" ];
  22. # Add docker extensions.
  23. environment.systemPackages = [
  24. pkgs.docker-compose
  25. pkgs.docker-machine
  26. ];
  27. };
  28. }