1 { config, lib, pkgs, ... }:
3 # maintainer: siddharthist
8 cfg = config.services.urxvtd;
10 options.services.urxvtd = {
15 Enable urxvtd, the urxvt terminal daemon. To use urxvtd, run
20 package = mkPackageOption pkgs "rxvt-unicode" { };
23 config = mkIf cfg.enable {
24 systemd.user.services.urxvtd = {
25 description = "urxvt terminal daemon";
26 wantedBy = [ "graphical-session.target" ];
27 partOf = [ "graphical-session.target" ];
30 ExecStart = "${cfg.package}/bin/urxvtd -o";
31 Environment = "RXVT_SOCKET=%t/urxvtd-socket";
32 Restart = "on-failure";
37 environment.systemPackages = [ cfg.package ];
38 environment.variables.RXVT_SOCKET = "/run/user/$(id -u)/urxvtd-socket";
41 meta.maintainers = with lib.maintainers; [ rnhmjoj ];