mirror of
https://github.com/nix-community/home-manager
synced 2024-12-24 18:59:47 +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:
parent
31357486b0
commit
40ab43ae98
2 changed files with 2 additions and 0 deletions
|
@ -68,6 +68,7 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
Service = {
|
Service = {
|
||||||
|
Environment = "PATH=${makeBinPath [ cfg.package ]}";
|
||||||
ExecStart = "${cfg.package}/bin/foot --server";
|
ExecStart = "${cfg.package}/bin/foot --server";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
OOMPolicy = "continue";
|
OOMPolicy = "continue";
|
||||||
|
|
|
@ -2,6 +2,7 @@
|
||||||
WantedBy=graphical-session.target
|
WantedBy=graphical-session.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
|
Environment=PATH=@foot@/bin
|
||||||
ExecStart=@foot@/bin/foot --server
|
ExecStart=@foot@/bin/foot --server
|
||||||
OOMPolicy=continue
|
OOMPolicy=continue
|
||||||
Restart=on-failure
|
Restart=on-failure
|
||||||
|
|
Loading…
Reference in a new issue