summary refs log tree commit diff
path: root/nixos/modules/programs/extra-container.nix
blob: c10ccd7691688fcdce2ff049e16eb2a4eda47bfd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
{ 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" ];
  };
}