1 { config, lib, pkgs, ... }:
3 # maintainer: siddharthist
8 cfg = config.services.urxvtd;
10 options.services.urxvtd = {
14 description = lib.mdDoc ''
15 Enable urxvtd, the urxvt terminal daemon. To use urxvtd, run
21 default = pkgs.rxvt-unicode;
22 defaultText = literalExpression "pkgs.rxvt-unicode";
23 description = lib.mdDoc ''
24 Package to install. Usually pkgs.rxvt-unicode.
30 config = mkIf cfg.enable {
31 systemd.user.services.urxvtd = {
32 description = "urxvt terminal daemon";
33 wantedBy = [ "graphical-session.target" ];
34 partOf = [ "graphical-session.target" ];
37 ExecStart = "${cfg.package}/bin/urxvtd -o";
38 Environment = "RXVT_SOCKET=%t/urxvtd-socket";
39 Restart = "on-failure";
44 environment.systemPackages = [ cfg.package ];
45 environment.variables.RXVT_SOCKET = "/run/user/$(id -u)/urxvtd-socket";
48 meta.maintainers = with lib.maintainers; [ rnhmjoj ];