diff --git a/roles/desktop/programs/distrobox.nix b/roles/desktop/programs/distrobox.nix index 4e594a4..6de5db5 100644 --- a/roles/desktop/programs/distrobox.nix +++ b/roles/desktop/programs/distrobox.nix @@ -6,6 +6,23 @@ 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; + }; + }; }; }; }