1
0
Fork 0
mirror of https://github.com/ryanccn/flake.git synced 2025-12-06 08:10:43 +01:00

feat: add nixos (doesn't work yet)

This commit is contained in:
Ryan Cao 2023-08-13 18:51:49 +08:00
parent 9f1c1a8c22
commit d44d3919ed
Signed by: ryanccn
SSH key fingerprint: SHA256:NtP/BlVhoQq4xU6BEcZeT8nIPvHntkJ3lIc2yB+F09E
7 changed files with 194 additions and 35 deletions

View file

@ -1,10 +1,16 @@
{...}: {
{
lib,
stdenv,
...
}: let
inherit (stdenv) isDarwin;
in {
programs.go = {
enable = true;
goPath = ".go";
};
home.file."Library/Application Support/go/env".text = ''
home.file."Library/Application Support/go/env".text = lib.optionalString isDarwin ''
GOTOOLCHAIN=path
GOPROXY=direct
'';