Programs/distrobox: add container
This commit is contained in:
parent
e8af512370
commit
fa8efef26a
1 changed files with 17 additions and 0 deletions
|
|
@ -6,6 +6,23 @@
|
||||||
home-manager.users.toast = {
|
home-manager.users.toast = {
|
||||||
programs.distrobox = {
|
programs.distrobox = {
|
||||||
enable = true;
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue