mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 13:12:10 -08:00
21 lines
357 B
Nix
21 lines
357 B
Nix
{
|
|
pkgs,
|
|
lib,
|
|
config,
|
|
...
|
|
}:
|
|
let
|
|
cfg = config.liminalOS.extras.distrobox;
|
|
in
|
|
{
|
|
options.liminalOS.extras.distrobox.enable = lib.mkEnableOption "distrobox and podman";
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
virtualisation.podman = {
|
|
enable = true;
|
|
dockerCompat = true;
|
|
};
|
|
|
|
environment.systemPackages = [ pkgs.distrobox ];
|
|
};
|
|
}
|