nixos/modules/system/services/distrobox.nix

17 lines
387 B
Nix
Raw Normal View History

2024-06-18 19:44:19 +02:00
{ config, pkgs, lib, ... }:
with lib;
let
cfg = config.modules.system.services.distrobox;
2024-06-18 19:44:19 +02:00
in
{
options.modules.system.services.distrobox = {
2024-06-18 19:44:19 +02:00
enable = mkEnableOption ''
Enable distrobox with my custom configurations
'';
};
config = mkIf cfg.enable {
modules.system.services.docker.enable = true;
2024-06-18 19:44:19 +02:00
environment.systemPackages = with pkgs; [ distrobox ];
};
}