gkzhb 花园

Home

❯

03-Resources

❯

A-未分类

❯

2026

❯

04

❯

Res.NixOS with Golang

Res.NixOS with Golang

Properties5
tagspara/resource
titleRes.NixOS with Golang
publish
modified2026-04-29T22:10:31+08:00
created2026-04-29T20:31:31+08:00

2026年4月29日1分钟阅读

  • para/resource
  • tags:: NixOS

Athens 管理 go module 下载

在 nix build 中或者之外使用 GOPROXY 参考:
nixpkgs/nixos/modules/services/development/athens.md at 4821782ec678ef791d52c05bba03dcdf0c83668a · NixOS/nixpkgs

使用 impure-env experimental feature ,而非改 nix daemon systemd service 环境变量, nix daemon 设置环境变量不生效

{
  nix.settings.experimental-features = [ "configurable-impure-env" ];
  nix.settings.impure-env = "GOPROXY=http://localhost:3000";
}

关系图谱

Created with Quartz v5.0.0 © 2026

  • GitHub
  • Discord Community