From 0cf00b221106c22de234b814ef404b8193969e10 Mon Sep 17 00:00:00 2001 From: Kjetil Orbekk Date: Sat, 3 Sep 2022 17:17:39 -0400 Subject: update gpg setup on minideck --- machines/minideck.nix | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'machines') diff --git a/machines/minideck.nix b/machines/minideck.nix index fba0e73..404f3f4 100644 --- a/machines/minideck.nix +++ b/machines/minideck.nix @@ -10,6 +10,21 @@ with lib; services.xserver.enable = mkForce false; services.xserver.displayManager.lightdm.enable = mkForce false; + # Fake pipewire socket activation. + services.pipewire.socketActivation = false; + systemd.user.services.pipewire-setup = { + description = "Link pipewire socket"; + after = ["paths.target"]; + wantedBy = ["default.target"]; + serviceConfig = { + ExecStart = "${pkgs.coreutils}/bin/ln -s /tmp/pipewire-0 %t/pipewire-0"; + Type = "oneshot"; + }; + }; + + # GPG socket is forwarded by SSH. + systemd.user.sockets.gpg-agent.enable = mkForce false; + nix.gc.persistent = false; boot.cleanTmpDir = mkForce false; # Don't delete bind mounts in /tmp. -- cgit v1.2.3