-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable git signing commits and ssh-agent service #264
Conversation
Signed-off-by: Kenichi Kamiya <[email protected]>
…shell executions" This reverts commit e966da7.
@@ -11,6 +11,23 @@ let | |||
# - id_*.pub: I CAN register them for different services. | |||
in | |||
{ | |||
# https://github.com/nix-community/home-manager/blob/master/modules/services/ssh-agent.nix | |||
services.ssh-agent.enable = if pkgs.stdenv.isLinux then true else false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://unix.stackexchange.com/a/390631
> bat ~/.config/systemd/user/ssh-agent.service
───────┬────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ File: /home/kachick/.config/systemd/user/ssh-agent.service
───────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────
1 │ [Install]
2 │ WantedBy=default.target
3 │
4 │ [Service]
5 │ ExecStart=/nix/store/11p34v2dfzjavry4kmwlp4d8jhjz4c6c-openssh-9.3p2/bin/ssh-agent -D -a %t/ssh-agent
6 │
7 │ [Unit]
8 │ Description=SSH authentication agent
9 │ Documentation=man:ssh-agent(1)
Already exists 🤔
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After it
> ps -ef | grep ssh
kachick 516 504 0 15:06 ? 00:00:00 /nix/store/11p34v2dfzjavry4kmwlp4d8jhjz4c6c-openssh-9.3p2/bin/ssh-agent -D -a /run/user/1000/ssh-agent
kachick 1225 652 0 15:07 pts/0 00:00:00 grep ssh
The new go script compiling is failed in macOS, this commit should fail
home-manager/home.nix
Outdated
@@ -16,6 +16,8 @@ | |||
# TODO: How to cover lima? The default is /home/kachick.local | |||
home.homeDirectory = if pkgs.stdenv.isDarwin then "/Users/${config.home.username}" else "/home/${config.home.username}"; | |||
|
|||
systemd.user.startServices = "sd-switch"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This makes following error after several changes, I know nothing about them 🤷♂️
thread 'main' panicked at 'Error switching: Failed to connect to socket /run/user/1000/bus
|
Resolves #93 relate to kachick/dotfiles#311 kachick/dotfiles#263, kachick/dotfiles#264
May relate to #262