diff --git a/modules/common/agenix.nix b/modules/common/agenix.nix index ad41979..9927d73 100644 --- a/modules/common/agenix.nix +++ b/modules/common/agenix.nix @@ -1,9 +1,11 @@ -{ pkgs, ... }: { +{ pkgs, config, ... }: { environment.systemPackages = with pkgs; [ agenix ]; - age.identityPaths = [ - "~/.ssh/id_ed25519" + age.identityPaths = if config.onLinux then [ + "/home/thegeneralist/.ssh/id_ed25519" + ] else [ + "/Users/thegeneralist/.ssh/id_ed25519" ]; }