Nix configurations for my personal machines (Linux & macOS)

desktop: add 1password ssh agent

ovyerus.com 3cd3fa83 8a4dd97b

verified
Changed files
+13 -5
home
modules
+13 -5
home/modules/ssh.nix
···
-
{
+
{lib, ...}: {
programs.ssh = {
enable = true;
-
matchBlocks."*" = {
-
identitiesOnly = true;
-
identityFile = "~/.ssh/id_ed25519_sk_rk";
-
user = "ovy";
+
matchBlocks = {
+
"*" = {
+
identitiesOnly = true;
+
identityFile = "~/.ssh/id_ed25519_sk_rk";
+
user = "ovy";
+
};
+
# OpenWrt
+
"192.168.1.1" = lib.hm.dag.entryBefore ["*"] {
+
user = "root";
+
extraOptions.IdentityAgent = "~/.1password/agent.sock";
+
extraOptions.IdentitiesOnly = "no";
+
};
};
};
}