Compare commits
1 commit
572a731057
...
fcb544dfa3
| Author | SHA1 | Date | |
|---|---|---|---|
| fcb544dfa3 |
1 changed files with 19 additions and 0 deletions
|
|
@ -58,6 +58,25 @@
|
|||
'';
|
||||
};
|
||||
|
||||
systemd.services.opencode-tailnet = {
|
||||
description = "Expose OpenCode on the tailnet";
|
||||
after = [ "network-online.target" "tailscaled.service" "tailscale-set-operator.service" ];
|
||||
wants = [ "network-online.target" ];
|
||||
requires = [ "tailscaled.service" "tailscale-set-operator.service" ];
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
serviceConfig = {
|
||||
Type = "simple";
|
||||
User = "jet";
|
||||
Restart = "always";
|
||||
RestartSec = 5;
|
||||
ExecStartPre = [
|
||||
"${pkgs.tailscale}/bin/tailscale serve --bg 4096"
|
||||
];
|
||||
ExecStart = "${config.users.users.jet.home}/.nix-profile/bin/opencode serve --hostname 127.0.0.1 --port 4096";
|
||||
WorkingDirectory = config.users.users.jet.home;
|
||||
};
|
||||
};
|
||||
|
||||
time.timeZone = "America/Los_Angeles";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue