added docker module

This commit is contained in:
John Lancaster
2026-02-16 13:06:05 -06:00
parent 330bf88a4b
commit 5a3f57570f
2 changed files with 23 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
{
flake.homeModules.docker = { config, lib, pkgs, ... }:
{
options.docker = {
enable = lib.mkEnableOption "Docker tools and utilities";
};
config = lib.mkIf config.docker.enable {
programs.lazydocker.enable = true;
programs.docker-cli.enable = true;
home.packages = with pkgs; [
docker
docker-compose
lazydocker
(pkgs.writeShellScriptBin "test-docker" ''
echo "Hello from docker.nix!"
'')
];
};
};
}

View File

@@ -11,6 +11,7 @@
ghostty ghostty
sops sops
zsh zsh
docker
]; ];
}; };