2024-06-25 04:04:39 +03:00
|
|
|
{ pkgs, lib, config, ... }: with lib; let
|
|
|
|
cfg = config.module.common.distrobox;
|
|
|
|
in {
|
|
|
|
options = {
|
|
|
|
module.common.distrobox = {
|
|
|
|
enable = mkEnableOption "Distrobox." // { default = true; };
|
|
|
|
};
|
|
|
|
};
|
2024-05-04 23:15:57 +03:00
|
|
|
|
2024-06-25 04:04:39 +03:00
|
|
|
config = mkIf cfg.enable {
|
|
|
|
# Distrobox works best with Podman, so enable it here.
|
|
|
|
module.podman.enable = true;
|
|
|
|
|
|
|
|
environment.systemPackages = with pkgs; [ distrobox ];
|
|
|
|
};
|
2024-03-04 00:34:39 +03:00
|
|
|
}
|