1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00
home-manager/tests/modules/programs/go/suboptions-unset.nix

24 lines
488 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}
'';
}