2021-09-30 21:03:20 +02:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
let
|
|
|
|
cfg = config.programs.extra-container;
|
|
|
|
in {
|
|
|
|
options = {
|
2022-08-28 21:18:44 +02:00
|
|
|
programs.extra-container.enable = mkEnableOption (lib.mdDoc ''
|
2021-09-30 21:03:20 +02:00
|
|
|
extra-container, a tool for running declarative NixOS containers
|
|
|
|
without host system rebuilds
|
2022-08-28 21:18:44 +02:00
|
|
|
'');
|
2021-09-30 21:03:20 +02:00
|
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
|
|
environment.systemPackages = [ pkgs.extra-container ];
|
|
|
|
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
|
|
|
|
};
|
|
|
|
}
|