about summary refs log tree commit diff
path: root/home/go
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-04-07 10:51:33 -0700
committerFranck Cuny <franck@fcuny.net>2022-04-07 10:51:33 -0700
commit2e067137ada1610f1a5ec205bd42458669233970 (patch)
tree1fb1afd535c824bb2fb9188cf714a8386e2e549c /home/go
parentinitial attempt to reconfigure home-manager (diff)
downloadworld-2e067137ada1610f1a5ec205bd42458669233970.tar.gz
home: misc fixes
Diffstat (limited to 'home/go')
-rw-r--r--home/go/default.nix19
1 files changed, 10 insertions, 9 deletions
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 ];
 }