1
0
Fork 0
mirror of https://github.com/nix-community/home-manager synced 2024-12-24 02:39:48 +01:00

foot: set PATH in server's systemd unit file

If not set, foot's terminal spawning shortcut will not work as the
`footclient` binary is not on the server's PATH.
This commit is contained in:
Bryn Edwards 2024-04-13 07:27:43 +01:00 committed by GitHub
parent 31357486b0
commit 40ab43ae98
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 0 deletions

View file

@ -68,6 +68,7 @@ in {
};
Service = {
Environment = "PATH=${makeBinPath [ cfg.package ]}";
ExecStart = "${cfg.package}/bin/foot --server";
Restart = "on-failure";
OOMPolicy = "continue";

View file

@ -2,6 +2,7 @@
WantedBy=graphical-session.target
[Service]
Environment=PATH=@foot@/bin
ExecStart=@foot@/bin/foot --server
OOMPolicy=continue
Restart=on-failure