summaryrefslogtreecommitdiff
path: root/sys/nspawn.nix
blob: 528223a8f435f2f265e487f69b673b44810dc863 (plain)
1
2
3
4
5
6
7
8
9
10
11
{ lib, config, ... }:
with lib; let
  cfg = config.local.nspawn;
in
{
  options.local.nspawn.dmz.enable = mkEnableOption "DMZ services in a container";

  config.systemd.nspawn.dmz = mkIf cfg.dmz.enable {
    execConfig.PrivateUsers = true;
  };
}