diff options
author | pennae <github@quasiparticle.net> | 2021-12-18 09:28:37 +0100 |
---|---|---|
committer | pennae <github@quasiparticle.net> | 2021-12-29 20:12:03 +0100 |
commit | 3dbb117aa579330d76fd3b949862b1223f91d6ea (patch) | |
tree | d69cce0f0211681ecbd0f713acd4a4387df32f28 /nixos/modules/services/security/aesmd.nix | |
parent | bf58a90d09fdfb3f24b304be79e1259b123d8632 (diff) | |
download | nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.tar nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.tar.gz nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.tar.bz2 nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.tar.lz nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.tar.xz nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.tar.zst nixpkgs-3dbb117aa579330d76fd3b949862b1223f91d6ea.zip |
nixos/aesmd: add missing defaultText
Diffstat (limited to 'nixos/modules/services/security/aesmd.nix')
-rw-r--r-- | nixos/modules/services/security/aesmd.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/security/aesmd.nix b/nixos/modules/services/security/aesmd.nix index bb53bc49e25..924d614e471 100644 --- a/nixos/modules/services/security/aesmd.nix +++ b/nixos/modules/services/security/aesmd.nix @@ -1,7 +1,8 @@ -{ config, pkgs, lib, ... }: +{ config, options, pkgs, lib, ... }: with lib; let cfg = config.services.aesmd; + opt = options.services.aesmd; sgx-psw = pkgs.sgx-psw.override { inherit (cfg) debug; }; @@ -43,6 +44,9 @@ in options.proxyType = mkOption { type = with types; nullOr (enum [ "default" "direct" "manual" ]); default = if (cfg.settings.proxy != null) then "manual" else null; + defaultText = literalExpression '' + if (config.${opt.settings}.proxy != null) then "manual" else null + ''; example = "default"; description = '' Type of proxy to use. The <literal>default</literal> uses the system's default proxy. |