fix gonme-keyring

This commit is contained in:
Henri Dohmen 2025-06-01 12:07:45 +02:00
parent 0a97130655
commit c26cc20f57
3 changed files with 9 additions and 10 deletions

8
flake.lock generated
View file

@ -101,11 +101,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1748726222, "lastModified": 1748771430,
"narHash": "sha256-MPhNInJtfk5gm1NOqoo5+M/L8jRikRqhUhdXH8IIUpA=", "narHash": "sha256-3XczjH1gjIBRpGHV1sGvCtJNpIoySeMkegE9c+yJ5dQ=",
"ref": "refs/heads/main", "ref": "refs/heads/main",
"rev": "f1246d892acab2e3fcf533d669c0f6033fb72d9d", "rev": "cf7fb1e8721ca5543fc88e35e434d6fba3daed75",
"revCount": 5, "revCount": 6,
"type": "git", "type": "git",
"url": "ssh://git@github.com/henridoh/nixos-config-hidden" "url": "ssh://git@github.com/henridoh/nixos-config-hidden"
}, },

View file

@ -44,7 +44,7 @@ in
Description = "protonmail bridge"; Description = "protonmail bridge";
}; };
Install = { Install = {
wantedBy = [ "graphical-session.target" ]; WantedBy = [ "graphical-session.target" ];
}; };
Service = Service =
let let
@ -53,9 +53,7 @@ in
{ {
ExecStart = "${lib.getExe cfg.package} --noninteractive ${logLevel}"; ExecStart = "${lib.getExe cfg.package} --noninteractive ${logLevel}";
Restart = "always"; Restart = "always";
RestartSec = "2s";
Environment = [ "PATH=${lib.makeBinPath (cfg.path ++ [ cfg.package ])}" ]; Environment = [ "PATH=${lib.makeBinPath (cfg.path ++ [ cfg.package ])}" ];
path = cfg.path;
}; };
}; };
}; };

View file

@ -4,6 +4,7 @@
home.packages = with pkgs; [ home.packages = with pkgs; [
seahorse seahorse
libsecret libsecret
gnome-keyring
]; ];
programs.gpg = { programs.gpg = {
enable = true; enable = true;
@ -13,8 +14,8 @@
enableSshSupport = true; enableSshSupport = true;
pinentry.package = pkgs.pinentry-gtk2; pinentry.package = pkgs.pinentry-gtk2;
}; };
services.gnome-keyring = { };
services.gnome.gnome-keyring = {
enable = true; enable = true;
}; };
};
} }