-
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
Fix gnome-online-accounts by enabling gnome-keyring and unsetting SSH_AUTH_SOCK #1037
Conversation
Intentionally preferring existing variable since init nix-community/home-manager#4178 |
nixos/desktop/default.nix
Outdated
@@ -102,7 +102,7 @@ | |||
# https://github.com/NixOS/nixpkgs/issues/101616 | |||
# | |||
# Using mkforce for https://discourse.nixos.org/t/gpg-smartcard-for-ssh/33689/3 | |||
services.gnome.gnome-keyring.enable = lib.mkForce false; | |||
# services.gnome.gnome-keyring.enable = lib.mkForce 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.
Can I simply resolve this after NixOS/nixpkgs#310978?
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.
I should remember why I should avoid gnome-keyring in SSH_AUTH_SOCK
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.
How to enabling the env is...
- https://github.com/NixOS/nixpkgs/blob/8cde48031da322bb1039740d72816fde20aea25f/nixos/modules/services/desktops/gnome/gnome-keyring.nix#L38C33-L38C51
- https://github.com/NixOS/nixpkgs/blob/8cde48031da322bb1039740d72816fde20aea25f/nixos/modules/security/pam.nix#L726
- https://github.com/NixOS/nixpkgs/blob/8cde48031da322bb1039740d72816fde20aea25f/nixos/modules/security/pam.nix#L966-L970
configureFlags = final.lib.lists.remove "--enable-ssh-agent" previousAttrs.configureFlags; | ||
} | ||
); | ||
}) |
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 this change
> echo $SSH_AUTH_SOCK
/run/user/1001/ssh-agent
However it takes minutes for build...
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.
Rebuilding my system increased 6 minutes 😢
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.
Another idea is overriding the SSH_AUTH_SOCK with following steps.
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.
However it might make confusion for many existing code.
Closes GH-1034 and Closes GH-1036
Fixes GH-1015 with updating GH-978 and GH-814