Skip to content

Commit

Permalink
fix(darwin): fix launchd pbcopy/pbpaste
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Alexandro Becker <caarlos0@users.noreply.github.com>
  • Loading branch information
caarlos0 committed Jan 22, 2024
1 parent 7cd11dc commit 98547eb
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 43 deletions.
43 changes: 0 additions & 43 deletions machines/supernova/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -109,47 +109,4 @@
};
};
};

launchd.agents = {
pbcopy = {
serviceConfig = {
Label = "localhost.pbcopy";
ProgramArguments = [ "/usr/bin/pbcopy" ];
RunAtLoad = true;
KeepAlive = {
Crashed = true;
SuccessfulExit = false;
};
ProcessType = "Background";
EnvironmentVariables = { "LC_CTYPE" = "UTF-8"; };
inetdCompatibility = { Wait = false; };
Sockets = {
Listener = {
SockServiceName = "2224";
SockNodeName = "127.0.0.1";
};
};
};
};
pbpaste = {
serviceConfig = {
Label = "localhost.pbpaste";
ProgramArguments = [ "/usr/bin/pbpaste" ];
RunAtLoad = true;
KeepAlive = {
Crashed = true;
SuccessfulExit = false;
};
ProcessType = "Background";
inetdCompatibility = { Wait = false; };
EnvironmentVariables = { "LC_CTYPE" = "UTF-8"; };
Sockets = {
Listener = {
SockServiceName = "2225";
SockNodeName = "127.0.0.1";
};
};
};
};
};
}
46 changes: 46 additions & 0 deletions modules/darwin/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,50 @@
fish_add_path -a /Applications/Postgres.app/Contents/Versions/latest/bin/
fish_add_path -a /opt/homebrew/bin/
'';


launchd.agents = {
pbcopy = {
enable = true;
config = {
Label = "localhost.pbcopy";
ProgramArguments = [ "/usr/bin/pbcopy" ];
RunAtLoad = true;
KeepAlive = {
Crashed = true;
SuccessfulExit = false;
};
ProcessType = "Background";
EnvironmentVariables = { "LC_CTYPE" = "UTF-8"; };
inetdCompatibility = { Wait = false; };
Sockets = {
Listener = {
SockServiceName = "2224";
SockNodeName = "127.0.0.1";
};
};
};
};
pbpaste = {
enable = true;
config = {
Label = "localhost.pbpaste";
ProgramArguments = [ "/usr/bin/pbpaste" ];
RunAtLoad = true;
KeepAlive = {
Crashed = true;
SuccessfulExit = false;
};
ProcessType = "Background";
inetdCompatibility = { Wait = false; };
EnvironmentVariables = { "LC_CTYPE" = "UTF-8"; };
Sockets = {
Listener = {
SockServiceName = "2225";
SockNodeName = "127.0.0.1";
};
};
};
};
};
}

0 comments on commit 98547eb

Please sign in to comment.