Unverified Commit a56b4f3e authored by Aleksana's avatar Aleksana Committed by GitHub
Browse files

nixos/wrappers: add enable switch (#350233)

parents 25d57720 7fad2c2e
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -165,6 +165,10 @@ in
  ###### interface

  options = {
    security.enableWrappers = lib.mkEnableOption "SUID/SGID wrappers" // {
      default = true;
    };

    security.wrappers = lib.mkOption {
      type = lib.types.attrsOf wrapperType;
      default = {};
@@ -227,7 +231,7 @@ in
  };

  ###### implementation
  config = {
  config = lib.mkIf config.security.enableWrappers {

    assertions = lib.mapAttrsToList
      (name: opts: