mirror of
https://github.com/youwen5/nixos.git
synced 2025-01-18 05:02:10 -08:00
refactor: modularize distrobox module
This commit is contained in:
parent
005fa17ee1
commit
3e93fc2b92
1 changed files with 18 additions and 6 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue