at 23.11-pre 453 B view raw
1{ config, pkgs, lib, ... }: 2 3with lib; 4let 5 cfg = config.programs.extra-container; 6in { 7 options = { 8 programs.extra-container.enable = mkEnableOption (lib.mdDoc '' 9 extra-container, a tool for running declarative NixOS containers 10 without host system rebuilds 11 ''); 12 }; 13 config = mkIf cfg.enable { 14 environment.systemPackages = [ pkgs.extra-container ]; 15 boot.extraSystemdUnitPaths = [ "/etc/systemd-mutable/system" ]; 16 }; 17}