2021-09-30 19:03:20 +00:00
|
|
|
{ config, pkgs, lib, ... }:
|
|
|
|
|
|
|
|
let
|
|
|
|
cfg = config.programs.extra-container;
|
|
|
|
in {
|
|
|
|
options = {
|
2024-04-17 11:37:58 +00:00
|
|
|
programs.extra-container.enable = lib.mkEnableOption ''
|
2021-09-30 19:03:20 +00:00
|
|
|
extra-container, a tool for running declarative NixOS containers
|
|
|
|
without host system rebuilds
|
2024-04-13 12:54:15 +00:00
|
|
|
'';
|
2021-09-30 19:03:20 +00:00
|
|
|
};
|
2024-04-17 11:37:58 +00:00
|
|
|
config = lib.mkIf cfg.enable {
|
2021-09-30 19:03:20 +00:00
|
|
|
environment.systemPackages = [ pkgs.extra-container ];
|
|
|
|
boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ];
|
|
|
|
};
|
|
|
|
}
|