What seems to be a workable config

This commit is contained in:
Olaf
2025-05-07 11:46:07 +02:00
parent fbd41a72f1
commit 62d004a6a2
13 changed files with 638 additions and 62 deletions

View File

@ -1,8 +1,7 @@
{ config, pkgs, lib, ... }:
let name = "%NAME%";
user = "%USER%";
email = "%EMAIL%"; in
let name = "olaf";
user = "olaf";
email = "github@dacht.net"; in
{
# Shared shell configuration
zsh = {
@ -270,12 +269,14 @@ let name = "%NAME%";
)
];
matchBlocks = {
"Host *" = {
identityAgent="\"~/Library/Group Containers/2BUA8C4S2C.com.1password/t/agent.sock\"";
};
"github.com" = {
identitiesOnly = true;
identityFile = [
(lib.mkIf pkgs.stdenv.hostPlatform.isLinux
"/home/${user}/.ssh/id_github"
)
"/home/${user}/.ssh/id_github" )
(lib.mkIf pkgs.stdenv.hostPlatform.isDarwin
"/Users/${user}/.ssh/id_github"
)