summaryrefslogtreecommitdiffstats
path: root/tv/2configs
diff options
context:
space:
mode:
Diffstat (limited to 'tv/2configs')
-rw-r--r--tv/2configs/xsessions/default.nix1
-rw-r--r--tv/2configs/xsessions/urxvtd.nix15
2 files changed, 16 insertions, 0 deletions
diff --git a/tv/2configs/xsessions/default.nix b/tv/2configs/xsessions/default.nix
index f7e9be4a8..384c9c5e5 100644
--- a/tv/2configs/xsessions/default.nix
+++ b/tv/2configs/xsessions/default.nix
@@ -1,4 +1,5 @@
{
imports = [
+ ./urxvtd.nix
];
}
diff --git a/tv/2configs/xsessions/urxvtd.nix b/tv/2configs/xsessions/urxvtd.nix
new file mode 100644
index 000000000..de16a634b
--- /dev/null
+++ b/tv/2configs/xsessions/urxvtd.nix
@@ -0,0 +1,15 @@
+{ pkgs, ... }: {
+ systemd.user.sockets.urxvtd = {
+ wantedBy = [ "sockets.target" ];
+ socketConfig.ListenStream = "%t/urxvtd";
+ };
+ systemd.user.services.urxvtd = {
+ restartIfChanged = false;
+ environment = {
+ RXVT_SOCKET = "%t/urxvtd";
+ };
+ serviceConfig = {
+ ExecStart = "${pkgs.rxvt_unicode}/bin/urxvtd";
+ };
+ };
+}