2017-01-09 21:30:15 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
2017-10-18 21:36:39 +00:00
|
|
|
nix.profile = mkOption { internal = true; default = null; };
|
2017-11-28 23:14:31 +00:00
|
|
|
security.enableAccessibilityAccess = mkOption { internal = true; default = null; };
|
|
|
|
security.accessibilityPrograms = mkOption { internal = true; default = null; };
|
2017-01-09 21:30:15 +00:00
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
config = {
|
|
|
|
|
|
|
|
assertions =
|
|
|
|
[ { assertion = config.nix.profile == null; message = "nix.profile was renamed to nix.package"; }
|
2017-11-28 23:14:31 +00:00
|
|
|
{ assertion = config.security.enableAccessibilityAccess == null; message = "security.enableAccessibilityAccess was removed, it's broken since 10.12 because of SIP"; }
|
2017-01-09 21:30:15 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
nix.package = mkIf (config.nix.profile != null) config.nix.profile;
|
|
|
|
|
|
|
|
};
|
|
|
|
}
|