nix/module/Distrobox.nix

25 lines
372 B
Nix
Raw Normal View History

{
pkgs,
lib,
config,
...
}:
with lib;
let
cfg = config.module.distrobox;
in
{
options = {
module.distrobox = {
enable = mkEnableOption "Distrobox.";
};
};
config = mkIf cfg.enable {
# Distrobox works best with Podman, so enable it here.
module.podman.enable = true;
2024-06-25 04:04:39 +03:00
environment.systemPackages = with pkgs; [ distrobox ];
};
}