2024-06-25 04:04:39 +03:00
|
|
|
{ pkgs, lib, config, ... }: with lib; let
|
2024-06-30 03:56:48 +03:00
|
|
|
cfg = config.module.distrobox;
|
2024-06-25 04:04:39 +03:00
|
|
|
in {
|
|
|
|
options = {
|
2024-06-30 03:56:48 +03:00
|
|
|
module.distrobox = {
|
2024-06-25 04:04:39 +03:00
|
|
|
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
|
|
|
}
|