nix/module/Distrobox.nix

17 lines
369 B
Nix

{ pkgs, lib, config, ... }: with lib; let
cfg = config.module.distrobox;
in {
options = {
module.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 ];
};
}