nixos/radicle: fix support for encrypted privateKeyFile

This commit is contained in:
Julien Moutinho 2024-07-27 01:40:29 +02:00
parent d1ebe90a31
commit db44a65a61

View File

@ -119,7 +119,8 @@ in
enable = mkEnableOption "Radicle Seed Node";
package = mkPackageOption pkgs "radicle-node" { };
privateKeyFile = mkOption {
type = types.path;
# Note that a key encrypted by systemd-creds is not a path but a str.
type = with types; either path str;
description = ''
Absolute file path to an SSH private key,
usually generated by `rad auth`.