28 lines
889 B
Nix
28 lines
889 B
Nix
{...}: {
|
|
virtualisation.podman = {
|
|
# Due to limitations with home-manager, podman has to be available system wide
|
|
enable = true;
|
|
};
|
|
home-manager.users.toast = {
|
|
programs.distrobox = {
|
|
enable = true;
|
|
containers = {
|
|
uav = {
|
|
image = "quay.io/toolbx/ubuntu-toolbox:24.04";
|
|
# additional_packages = "lsb-release dmidecode git";
|
|
additional_packages = "git";
|
|
init_hooks = [
|
|
"git clone https://github.com/PX4/PX4-Autopilot.git --recursive /tmp/px4"
|
|
"cd /tmp/px4/Tools/setup/"
|
|
# The install scripts wants to add things to .bashrc, so it errors out
|
|
# This removes the line that does that
|
|
"sed -i '181d' ubuntu.sh"
|
|
"bash ubuntu.sh"
|
|
"rm -rf /tmp/px4 --one-file-system"
|
|
];
|
|
entry = true;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|