diff --git a/modules/linux/distrobox/default.nix b/modules/linux/distrobox/default.nix index 4b63a5c..0e5b800 100644 --- a/modules/linux/distrobox/default.nix +++ b/modules/linux/distrobox/default.nix @@ -1,9 +1,21 @@ -{ pkgs, ... }: { - virtualisation.podman = { - enable = true; - dockerCompat = true; - }; + pkgs, + lib, + config, + ... +}: +let + cfg = config.liminalOS.extras.distrobox; +in +{ + options.liminalOS.extras.distrobox.enable = lib.mkEnableOption "distrobox and podman"; - environment.systemPackages = [ pkgs.distrobox ]; + config = lib.mkIf cfg.enable { + virtualisation.podman = { + enable = true; + dockerCompat = true; + }; + + environment.systemPackages = [ pkgs.distrobox ]; + }; }