profiles/dev: use Distrobox Nix module

This commit is contained in:
Gabriel Arazas 2023-10-18 09:17:33 +08:00
parent de8beb9780
commit 39ccbe0976
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -142,11 +142,22 @@ in {
# !!! Please add your user to the "libvirtd" group.
(lib.mkIf cfg.virtualization.enable {
environment.systemPackages = with pkgs; [
distrobox # I heard you like Linux...
dive # Dive into container images.
virt-manager # An interface for those who are lazy to read a reference manual and create a 1000-line configuration per machine.
];
programs.distrobox = {
enable = true;
settings = {
container_additional_volumes = [
"/nix/store:/nix/store:r"
"/etc/profiles/per-user:/etc/profiles/per-user:r"
];
container_image_default = "registry.opensuse.org/opensuse/distrobox-packaging:latest";
container_command = "sh -norc";
};
};
# Podman with Docker compatibility which is not 100% but still better
# than nothing.
virtualisation.podman = {