diff --git a/features/sops.nix b/features/sops.nix index 12b935e..c2f6ff1 100644 --- a/features/sops.nix +++ b/features/sops.nix @@ -9,7 +9,10 @@ in age = { sshKeyPaths = [ ]; keyFile = - if pkgs.stdenv.isDarwin then "/usr/local/sops/age/keys.txt" else "/persist/sops/age/keys.txt"; + if pkgs.stdenv.hostPlatform.isDarwin then + "/usr/local/sops/age/keys.txt" + else + "/persist/sops/age/keys.txt"; }; secrets = {