2017-01-09 21:30:15 +00:00
|
|
|
{ config, lib, pkgs, ... }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
2018-01-13 01:12:39 +00:00
|
|
|
networking.networkservices = 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 =
|
2022-08-13 21:17:44 +00:00
|
|
|
[ { assertion = config.security.enableAccessibilityAccess == null; message = "security.enableAccessibilityAccess was removed, it's broken since 10.12 because of SIP"; }
|
2018-01-13 16:12:02 +00:00
|
|
|
{ assertion = config.system.activationScripts.extraPostActivation.text == ""; message = "system.activationScripts.extraPostActivation was renamed to system.activationScripts.postActivation"; }
|
|
|
|
{ assertion = config.system.activationScripts.extraUserPostActivation.text == ""; message = "system.activationScripts.extraUserPostActivation was renamed to system.activationScripts.postUserActivation"; }
|
2017-01-09 21:30:15 +00:00
|
|
|
];
|
|
|
|
|
2018-01-13 01:12:39 +00:00
|
|
|
warnings = mkIf (config.networking.networkservices != null) [
|
|
|
|
"networking.networkservices was renamed to networking.knownNetworkServices"
|
|
|
|
];
|
|
|
|
|
|
|
|
networking.knownNetworkServices = mkIf (config.networking.networkservices != null) config.networking.networkservices;
|
|
|
|
|
2018-01-13 16:12:02 +00:00
|
|
|
system.activationScripts.extraPostActivation.text = mkDefault "";
|
|
|
|
system.activationScripts.extraUserPostActivation.text = mkDefault "";
|
|
|
|
|
2017-01-09 21:30:15 +00:00
|
|
|
};
|
|
|
|
}
|