Fix audio and gpg bugs
Signed-off-by: Nikolaos Karaolidis <nick@karaolidis.com>
This commit is contained in:
@@ -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"
|
||||
|
||||
|
Reference in New Issue
Block a user