feat(nixos): add distrobox module

This commit is contained in:
Mohammad Rafiq 2025-06-19 23:06:27 +08:00
parent 386c7b18ef
commit 3ca4bd3f4b
No known key found for this signature in database
3 changed files with 35 additions and 2 deletions

View file

@ -0,0 +1,22 @@
{
config,
lib,
pkgs,
...
}:
let
inherit (lib) mkIf mkEnableOption singleton;
cfg = config.machine.virtualisation.distrobox;
in
{
options.machine.virtualisation.distrobox = {
enable = mkEnableOption "";
};
config = mkIf cfg.enable {
machine.virtualisation.podman.enable = true;
home-manager.sharedModules = singleton {
home.packages = singleton pkgs.distrobox;
# persistDirs = [ ".local/share/containers" ];
};
};
}