I have just updated my system from 24.05 to 24.11 and it seems to have broken 1password ssh signing.
Im not sure if this is caused by a problem with polkit or with 1password itself. Here are my configurations related to polkit and 1password:
(system config)
programs._1password = {
enable = true;
};
programs._1password-gui = {
enable = true;
polkitPolicyOwners = [ "smc" ];
};
security.polkit.enable = true;
(home-manager)
programs.git = {
enable = true;
userName = cfg.config.userName;
userEmail = cfg.config.userEmail;
extraConfig =
{
init.defaultBranch = "master";
gpg.format = "ssh";
gpg."ssh" = {
program = "${lib.getExe' pkgs._1password-gui "op-ssh-sign"}";
};
commit = {
gpgsign = true;
};
user.signingkey = "...";
};
};
systemd = {
user.services.polkit-gnome-authentication-agent-1 = {
Unit = {
Description = "polkit-gnome-authentication-agent-1";
Wants = [ "graphical-session.target" ];
After = [ "graphical-session-pre.target" ];
};
Service = {
Type = "simple";
ExecStart = "${pkgs.polkit_gnome}/libexec/polkit-gnome-authentication-agent-1";
Restart = "on-failure";
KillMode = "mixed";
RestartSec = 1;
TimeoutStopSec = 10;
};
Install = {
WantedBy = [ "graphical-session.target" ];
};
};
};
After the update, git ssh singing now fails
β¬β[smc@legion-smc:~/.dotfiles]β[14:54:26]β[master 9c41e44]
β°β>$ git commit -am "update nixos to 24.11"
error: 1Password: failed to fill whole buffer
fatal: failed to write commit object
Has anyone else encountered this and figured out a solution?