❄️ Dotfiles for our NixOS system configuration.
1{ lib, pkgs, ... }:
2
3{
4 programs.ssh = {
5 enable = true;
6 enableDefaultConfig = false;
7
8 matchBlocks."*" = lib.mkMerge [
9 # {
10 # # Default configuration for all hosts
11 # addKeysToAgent = "yes";
12 # identitiesOnly = true;
13 # }
14 (lib.mkIf pkgs.stdenv.isLinux {
15 identityAgent = "~/.1password/agent.sock";
16 })
17 (lib.mkIf pkgs.stdenv.isDarwin {
18 identityAgent = "\"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\"";
19 })
20 ];
21
22 # Fallback TERM for Ghostty if remote does not support xterm-ghostty
23 extraConfig = ''
24 Host *
25 SetEnv TERM=xterm-256color
26 '';
27 };
28}