nix/module/common/Distrobox.nix

17 lines
383 B
Nix

{ pkgs, lib, config, ... }: with lib; let
cfg = config.module.common.distrobox;
in {
options = {
module.common.distrobox = {
enable = mkEnableOption "Distrobox." // { default = true; };
};
};
config = mkIf cfg.enable {
# Distrobox works best with Podman, so enable it here.
module.podman.enable = true;
environment.systemPackages = with pkgs; [ distrobox ];
};
}