2.home-manager/tests/modules/programs/go/suboptions-unset.nix
stuebinm 084e7e6df9 treewide: remove unneeded string escapes
(this is to reduce warnings produced by Lix)
2026-03-19 21:54:07 +01:00

24 lines
487 B
Nix

{ pkgs, config, ... }:
{
programs.go = {
enable = true;
env = {
CXX = "g++";
GCCGO = "gccgo";
GOAMD64 = "v1";
GOARCH = "amd64";
GOAUTH = "netrc";
};
};
nmt.script =
let
goCfgDir = if !pkgs.stdenv.isDarwin then ".config/go" else "Library/Application Support/go";
in
''
assertFileExists "home-files/${goCfgDir}/env"
assertFileContent "home-files/${goCfgDir}/env" \
${./env-suboptions-unset}
'';
}