Fix audio and gpg bugs

Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
2024-06-19 19:31:44 +03:00
parent 2ca6c5cd03
commit 4c24695a27
5 changed files with 8 additions and 8 deletions

View File

@@ -10,7 +10,8 @@
systemd.user.services.gpg-agent-import = {
Unit = {
Description = "Auto-import GPG keys";
After = [ "gpg-agent.socket" "sops-nix.service" ];
Requires = [ "sops-nix.service" "gpg-agent.socket" ];
After = [ "sops-nix.service" "gpg-agent.socket" ];
};
Service = {
@@ -18,9 +19,6 @@
ExecStart = pkgs.writeScript "import-gpg-keys" ''
#!${pkgs.runtimeShell}
find "$HOME"/.gnupg -type f -exec chmod 600 {} \;
find "$HOME"/.gnupg -type d -exec chmod 700 {} \;
for keyfile in "$HOME"/.config/sops-nix/secrets/gpg-agent/*.key; do
passfile="''${keyfile%.key}.pass"