From db44a65a614454a06e36ced9bb2c746ba596c6d9 Mon Sep 17 00:00:00 2001 From: Julien Moutinho Date: Sat, 27 Jul 2024 01:40:29 +0200 Subject: [PATCH] nixos/radicle: fix support for encrypted privateKeyFile --- nixos/modules/services/misc/radicle.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/misc/radicle.nix b/nixos/modules/services/misc/radicle.nix index 7d7804c6eadd..3a393bf0f1f2 100644 --- a/nixos/modules/services/misc/radicle.nix +++ b/nixos/modules/services/misc/radicle.nix @@ -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`.