mirror of
https://github.com/srid/nixos-config.git
synced 2026-04-17 09:45:17 +08:00
26 lines
556 B
Nix
26 lines
556 B
Nix
{ config, lib, pkgs, flake, ... }:
|
|
|
|
let
|
|
inherit (flake) inputs;
|
|
pathPackages = [
|
|
pkgs.git
|
|
pkgs.gh
|
|
pkgs.nix
|
|
inputs.vira.packages.${pkgs.stdenv.hostPlatform.system}.default
|
|
pkgs.coreutils
|
|
pkgs.gnugrep
|
|
pkgs.gnused
|
|
pkgs.findutils
|
|
pkgs.which
|
|
];
|
|
in
|
|
{
|
|
programs.opencode.web = {
|
|
enable = true;
|
|
# Bind to Tailscale IP only
|
|
extraArgs = [ "--hostname" "100.122.32.106" "--port" "4096" ];
|
|
};
|
|
systemd.user.services.opencode-web.Service = {
|
|
Environment = [ "PATH=${lib.makeBinPath pathPackages}" ];
|
|
};
|
|
}
|