From cedc8aaf5814d624279d234881a7b268ee356ca3 Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Tue, 4 Mar 2008 16:06:33 +0000 Subject: [PATCH] Now public key is copied to store (and its hash affects derivation hash) svn path=/nixos/trunk/; revision=10954 --- system/options.nix | 16 ++++++++++++++++ upstart-jobs/gw6c.nix | 2 ++ 2 files changed, 18 insertions(+) diff --git a/system/options.nix b/system/options.nix index 131daa14876..98362e68182 100644 --- a/system/options.nix +++ b/system/options.nix @@ -1891,6 +1891,22 @@ "; }; + seccureKeys = { + public = mkOption { + default = /var/elliptic-keys/public; + description = " + Public key. Make it path argument, so it is copied into store and + hashed. + "; + }; + private = mkOption { + default = "/var/elliptic-keys/private"; + description = " + Private key. Make it string argument, so it is not copied into store. + "; + }; + }; + sudo = { enable = mkOption { diff --git a/upstart-jobs/gw6c.nix b/upstart-jobs/gw6c.nix index 97b9c9da5d0..0f3d007e416 100644 --- a/upstart-jobs/gw6c.nix +++ b/upstart-jobs/gw6c.nix @@ -11,6 +11,8 @@ let server = cfg.server; keepAlive = cfg.keepAlive; everPing = cfg.everPing; + + seccureKeys = config.security.seccureKeys; }; in {