nixpkgs/nixos/modules/programs/extra-container.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
447 B
Nix
Raw Normal View History

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