lirc: Set a writable lockdir

This commit is contained in:
Jens Nolte 2021-09-19 18:05:12 +02:00
parent a3a23d9599
commit e66332826a
2 changed files with 2 additions and 1 deletions

View file

@ -65,7 +65,7 @@ in {
unitConfig.Documentation = [ "man:lircd(8)" ];
serviceConfig = {
RuntimeDirectory = "lirc";
RuntimeDirectory = ["lirc" "lirc/lock"];
# Service runtime directory and socket share same folder.
# Following hacks are necessary to get everything right:

View file

@ -42,6 +42,7 @@ stdenv.mkDerivation rec {
"--with-systemdsystemunitdir=$(out)/lib/systemd/system"
"--enable-uinput" # explicit activation because build env has no uinput
"--enable-devinput" # explicit activation because build env has no /dev/input
"--with-lockdir=/run/lirc/lock" # /run/lock is not writable for 'lirc' user
];
installFlags = [