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, ... }:
|
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
|
lib,
|
||||||
|
config,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
let
|
||||||
|
cfg = config.liminalOS.extras.distrobox;
|
||||||
|
in
|
||||||
|
{
|
||||||
|
options.liminalOS.extras.distrobox.enable = lib.mkEnableOption "distrobox and podman";
|
||||||
|
|
||||||
|
config = lib.mkIf cfg.enable {
|
||||||
virtualisation.podman = {
|
virtualisation.podman = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dockerCompat = true;
|
dockerCompat = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
environment.systemPackages = [ pkgs.distrobox ];
|
environment.systemPackages = [ pkgs.distrobox ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue