From 9cad67add70359ad9a3ebeaf5c9b29f734f9f8d9 Mon Sep 17 00:00:00 2001 From: lassulus Date: Fri, 15 May 2015 16:23:22 +0200 Subject: move sshkeys into module --- modules/common/sshkeys.nix | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 modules/common/sshkeys.nix (limited to 'modules/common/sshkeys.nix') diff --git a/modules/common/sshkeys.nix b/modules/common/sshkeys.nix new file mode 100644 index 00000000..5f1c6066 --- /dev/null +++ b/modules/common/sshkeys.nix @@ -0,0 +1,26 @@ +{ lib, ... }: + +with lib; + +{ + options = { + sshKeys = mkOption { + type = types.attrsOf (types.submodule ( + { config, ... }: + { + options = { + pub = mkOption { + type = types.str; + description = "Public part of the ssh key."; + }; + + priv = mkOption { + type = types.str; + description = "Private part of the ssh key."; + }; + }; + })); + description = "collection of ssh-keys"; + }; + }; +} -- cgit v1.2.3