3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos/modules/programs/extra-container.nix

18 lines
441 B
Nix
Raw Normal View History

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