nix/module/Distrobox.nix

17 lines
346 B
Nix
Raw Normal View History

2024-06-25 04:04:39 +03:00
{ pkgs, lib, config, ... }: with lib; let
cfg = config.module.distrobox;
2024-06-25 04:04:39 +03:00
in {
options = {
module.distrobox = {
2024-08-24 20:07:33 +03:00
enable = mkEnableOption "Distrobox.";
2024-06-25 04:04:39 +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 ];
};
}