From ed745602a1443888ceb9dc246c001d4f922503d3 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Thu, 13 Apr 2023 17:23:22 +0000 Subject: [PATCH] modules: secrets: move non-existent key workaround Since this configuration was only there to accommodate `aramis`, make it be host-specific instead, and rely on the default value otherwise. --- hosts/nixos/aramis/secrets/default.nix | 5 +++++ modules/secrets/default.nix | 5 ----- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/hosts/nixos/aramis/secrets/default.nix b/hosts/nixos/aramis/secrets/default.nix index 83af695..66d2c07 100644 --- a/hosts/nixos/aramis/secrets/default.nix +++ b/hosts/nixos/aramis/secrets/default.nix @@ -16,5 +16,10 @@ secrets = import ./secrets.nix; in lib.mapAttrs' convertSecrets secrets; + + identityPaths = [ + # Due to being a laptop, this host does not itself have any SSH keys + "/home/ambroisie/.ssh/id_ed25519" + ]; }; } diff --git a/modules/secrets/default.nix b/modules/secrets/default.nix index e8cb866..3fa78dc 100644 --- a/modules/secrets/default.nix +++ b/modules/secrets/default.nix @@ -20,10 +20,5 @@ secrets = import ./secrets.nix; in lib.mapAttrs' convertSecrets secrets; - - identityPaths = options.age.identityPaths.default ++ [ - # FIXME: hard-coded path, could be inexistent - "/home/ambroisie/.ssh/id_ed25519" - ]; }; }