From 2e067137ada1610f1a5ec205bd42458669233970 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 7 Apr 2022 10:51:33 -0700 Subject: home: misc fixes --- home/go/default.nix | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'home/go') diff --git a/home/go/default.nix b/home/go/default.nix index c316189..24748d0 100644 --- a/home/go/default.nix +++ b/home/go/default.nix @@ -1,16 +1,17 @@ -{ config, ... }: +{ lib, config, ... }: let cfg = config.my.home.go; in { - options.my.home.go = with lib.my; { + options.my.home.go = with lib; { enable = mkEnableOption "go configuration"; }; - config.programs.go = lib.mkIf cfg.enable { - enable = true; - goPath = ".local/share/pkg.go"; - goBin = ".local/bin.go"; - goPrivate = [ "git.fcuny.net" "golang.fcuny.net" ]; + config = lib.mkIf cfg.enable { + programs.go = { + enable = true; + goPath = ".local/share/pkg.go"; + goBin = ".local/bin.go"; + goPrivate = [ "git.fcuny.net" "golang.fcuny.net" ]; + }; + home.sessionPath = [ config.home.sessionVariables.GOBIN ]; }; - - # home.sessionPath = [ config.home.sessionVariables.GOBIN ]; } -- cgit 1.4.1