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"
|
||||
|
||||
|
@@ -43,6 +43,7 @@ in
|
||||
packages = with pkgs; [
|
||||
rofi-wayland
|
||||
swww
|
||||
pavucontrol
|
||||
];
|
||||
|
||||
stateVersion = "24.05";
|
||||
@@ -101,7 +102,7 @@ in
|
||||
) normalUsers;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /persist/home/ 0755 root root -" ] ++ lib.attrsets.mapAttrsToList (user: config:
|
||||
"d /persist${config.home} 0700 ${user} users -"
|
||||
) normalUsers;
|
||||
systemd.tmpfiles.rules = [ "d /persist/home/ 0755 root root -" ] ++
|
||||
lib.attrsets.mapAttrsToList ( user: config: "d /persist${config.home} 0700 ${user} users -" ) normalUsers ++
|
||||
lib.attrsets.mapAttrsToList ( user: config: "d ${config.home}/.gnupg 0700 ${user} users -" ) normalUsers;
|
||||
}
|
||||
|
Reference in New Issue
Block a user