nix/module/Distrobox.nix
2024-11-06 01:07:30 +03:00

21 lines
344 B
Nix

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