Manage ydotool socket
This commit is contained in:
parent
597b9a41d2
commit
5508f8ca09
2 changed files with 5 additions and 1 deletions
|
@ -1,4 +1,6 @@
|
|||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
|
||||
export YDOTOOL_SOCKET='/run/ydotool/ydotool.sock'
|
||||
|
||||
ydotool type --file <( gopass show --password "$1" )
|
||||
|
|
|
@ -22,12 +22,14 @@ in
|
|||
isSystemUser = true;
|
||||
};
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /run/ydotool - ydotool ydotool -" ];
|
||||
|
||||
systemd.services.ydotoold = {
|
||||
wantedBy = [ "multi-user.target" ]; # Pending NixOS/nixpkgs#169143
|
||||
description = "ydotool daemon";
|
||||
serviceConfig.User = "ydotool";
|
||||
serviceConfig.SupplementaryGroups = [ "uinput" ];
|
||||
script = "${cfg.package}/bin/ydotoold --socket-perm 0660";
|
||||
script = "${cfg.package}/bin/ydotoold --socket-path /run/ydotool/ydotool.sock --socket-perm 0660";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue