tv xsessions: add user urxvtd socket and service

This commit is contained in:
tv 2022-01-12 14:57:08 +01:00
parent 82ab279a82
commit 2868b43e81
2 changed files with 16 additions and 0 deletions

View File

@ -1,4 +1,5 @@
{
imports = [
./urxvtd.nix
];
}

View File

@ -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";
};
};
}