refactor: modularize distrobox module

This commit is contained in:
Youwen Wu 2024-12-23 01:38:04 -08:00
parent 005fa17ee1
commit 3e93fc2b92
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3

View file

@ -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 ];
};
}