This repository has been archived on 2025-11-26. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
nixos-config/modules/home/distrobox.nix

28 lines
752 B
Nix

{pkgs, ...}: {
programs.distrobox = {
enable = true;
enableSystemdUnit = true;
containers = {
debian13 = {
image = "debian:13";
entry = false;
additional_packages = "git";
init_hooks = [
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker"
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose"
];
};
kali = {
image = "docker.io/kalilinux/kali-rolling:latest";
entry = false;
init_hooks = [
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker"
"ln -sf /usr/bin/distrobox-host-exec /usr/local/bin/docker-compose"
];
};
};
};
home.packages = with pkgs; [boxbuddy];
}