Skip to content

Commit

Permalink
foot: set PATH in server's systemd unit file
Browse files Browse the repository at this point in the history
If not set, foot's terminal spawning shortcut will not work as the
`footclient` binary is not on the server's PATH.
  • Loading branch information
brynedwards authored Apr 13, 2024
1 parent 3135748 commit 40ab43a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/programs/foot.nix
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ in {
};

Service = {
Environment = "PATH=${makeBinPath [ cfg.package ]}";
ExecStart = "${cfg.package}/bin/foot --server";
Restart = "on-failure";
OOMPolicy = "continue";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
WantedBy=graphical-session.target

[Service]
Environment=PATH=@foot@/bin
ExecStart=@foot@/bin/foot --server
OOMPolicy=continue
Restart=on-failure
Expand Down

0 comments on commit 40ab43a

Please sign in to comment.