Skip to content

Commit

Permalink
nixos/urxvtd: remove socket activation
Browse files Browse the repository at this point in the history
This fixes #23193. urxvtd is not presently compatible with socket activation.
  • Loading branch information
fishyfriend committed Nov 25, 2018
1 parent 604b0f3 commit b34b39c
Showing 1 changed file with 10 additions and 20 deletions.
30 changes: 10 additions & 20 deletions nixos/modules/services/x11/urxvtd.nix
Expand Up @@ -18,27 +18,17 @@ in {
};

config = mkIf cfg.enable {
systemd.user = {
sockets.urxvtd = {
description = "socket for urxvtd, the urxvt terminal daemon";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
socketConfig = {
ListenStream = "%t/urxvtd-socket";
};
systemd.user.services.urxvtd = {
description = "urxvt terminal daemon";
wantedBy = [ "graphical-session.target" ];
partOf = [ "graphical-session.target" ];
path = [ pkgs.xsel ];
serviceConfig = {
ExecStart = "${pkgs.rxvt_unicode-with-plugins}/bin/urxvtd -o";
Environment = "RXVT_SOCKET=%t/urxvtd-socket";
Restart = "on-failure";
RestartSec = "5s";
};

services.urxvtd = {
description = "urxvt terminal daemon";
path = [ pkgs.xsel ];
serviceConfig = {
ExecStart = "${pkgs.rxvt_unicode-with-plugins}/bin/urxvtd -o";
Environment = "RXVT_SOCKET=%t/urxvtd-socket";
Restart = "on-failure";
RestartSec = "5s";
};
};

};

environment.systemPackages = [ pkgs.rxvt_unicode-with-plugins ];
Expand Down

0 comments on commit b34b39c

Please sign in to comment.