1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/distrobox/assert-package-systemd-unit.nix

18 lines
454 B
Nix

{
programs.distrobox = {
enable = true;
package = null;
enableSystemdUnit = true;
containers = {
python-project = {
image = "fedora:40";
additional_packages = "python3 git";
init_hooks = "pip3 install numpy pandas torch torchvision";
};
};
};
test.asserts.assertions.expected = [
"Cannot set `programs.distrobox.enableSystemdUnit` if `programs.distrobox.package` is set to null."
];
}