21 lines
344 B
Nix
21 lines
344 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
cfg = config.module.distrobox;
|
|
in {
|
|
options.module.distrobox = {
|
|
enable = lib.mkEnableOption "the distrobox.";
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
# Distrobox works best with Podman, so enable it here.
|
|
module.podman.enable = true;
|
|
environment.systemPackages = with pkgs; [
|
|
distrobox
|
|
];
|
|
};
|
|
}
|