mirror of
https://github.com/srid/nixos-config.git
synced 2026-01-28 11:47:12 +08:00
macos: 1p cli
This commit is contained in:
parent
f8d224f135
commit
6cf1736bf5
2 changed files with 13 additions and 12 deletions
|
|
@ -6,12 +6,13 @@
|
|||
_1password
|
||||
];
|
||||
|
||||
programs.zsh.envExtra = lib.mkIf pkgs.stdenv.isDarwin ''
|
||||
/*
|
||||
programs.zsh.envExtra = lib.mkIf pkgs.stdenv.isDarwin ''
|
||||
# For 1Password CLI. This requires `pkgs.gh` to be installed.
|
||||
# source $HOME/.config/op/plugins.sh
|
||||
'';
|
||||
'';
|
||||
|
||||
programs.ssh = {
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
matchBlocks = {
|
||||
"*".extraOptions = {
|
||||
|
|
@ -21,13 +22,13 @@
|
|||
else ''"~/.1password/agent.sock"'';
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
# https://developer.1password.com/docs/ssh/git-commit-signing/
|
||||
#
|
||||
# For this to work on GitHub, you must have added the SSH pub key as a signing key, see
|
||||
# https://1password.community/discussion/comment/667515/#Comment_667515
|
||||
programs.git.includes = [{
|
||||
# https://developer.1password.com/docs/ssh/git-commit-signing/
|
||||
#
|
||||
# For this to work on GitHub, you must have added the SSH pub key as a signing key, see
|
||||
# https://1password.community/discussion/comment/667515/#Comment_667515
|
||||
programs.git.includes = [{
|
||||
condition = "gitdir:~/code/**"; # Personal repos only
|
||||
contents = {
|
||||
user.signingKey = flake.config.me.sshKey;
|
||||
|
|
@ -38,5 +39,6 @@
|
|||
else "/run/current-system/sw/bin/op-ssh-sign";
|
||||
commit.gpgsign = true;
|
||||
};
|
||||
}];
|
||||
}];
|
||||
*/
|
||||
}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,6 @@
|
|||
# ./powershell.nix
|
||||
./all/juspay.nix
|
||||
|
||||
# Comment out because of annoying password prompts
|
||||
# ./all/_1password.nix
|
||||
./all/_1password.nix
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue