From ba7acaf3609e6aea8ad240693c61a8cc475234df Mon Sep 17 00:00:00 2001 From: Danilo Reyes Date: Mon, 23 Mar 2026 16:08:22 -0600 Subject: [PATCH] emacs-vm fix --- modules/dev/cc/common.nix | 9 +++++---- modules/dev/cc/home.nix | 2 +- modules/dev/go/common.nix | 10 ++++++---- modules/dev/go/home.nix | 2 +- 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/modules/dev/cc/common.nix b/modules/dev/cc/common.nix index 19fb090..92b6af2 100644 --- a/modules/dev/cc/common.nix +++ b/modules/dev/cc/common.nix @@ -1,19 +1,20 @@ { pkgs }: let - packages = builtins.attrValues { + basePackages = builtins.attrValues { inherit (pkgs) - clang clang-tools gcc gdb valgrind ; }; + homePackages = basePackages; + devShellPackages = basePackages ++ [ pkgs.clang ]; in { - inherit packages; + inherit devShellPackages homePackages; devShell = pkgs.mkShell { - inherit packages; + packages = devShellPackages; name = "cc-dev-shell"; shellHook = '' echo "🔧 C/C++ dev environment" diff --git a/modules/dev/cc/home.nix b/modules/dev/cc/home.nix index aabef0f..48a66fb 100644 --- a/modules/dev/cc/home.nix +++ b/modules/dev/cc/home.nix @@ -28,7 +28,7 @@ in my.dev.cc.enable = lib.mkDefault hm.enabledByDefault; } (lib.mkIf cfg.enable { - home.packages = feature.packages; + home.packages = feature.homePackages; }) ]; } diff --git a/modules/dev/go/common.nix b/modules/dev/go/common.nix index d451d3c..1e70339 100644 --- a/modules/dev/go/common.nix +++ b/modules/dev/go/common.nix @@ -1,6 +1,6 @@ { pkgs }: let - packages = builtins.attrValues { + basePackages = builtins.attrValues { inherit (pkgs) go gocode-gomod @@ -9,14 +9,16 @@ let gomodifytags golangci-lint ; - gotools = pkgs.lib.lowPrio pkgs.gotools; }; + homePackages = basePackages; + devShellPackages = basePackages ++ [ pkgs.gotools ]; GOPATH = "\${XDG_DATA_HOME:-\$HOME/.local/share}/go"; in { - inherit packages GOPATH; + inherit devShellPackages homePackages GOPATH; devShell = pkgs.mkShell { - inherit packages GOPATH; + packages = devShellPackages; + inherit GOPATH; name = "go-dev-shell"; shellHook = '' echo "🐹 Go dev environment" diff --git a/modules/dev/go/home.nix b/modules/dev/go/home.nix index 9614aa0..f62f7c5 100644 --- a/modules/dev/go/home.nix +++ b/modules/dev/go/home.nix @@ -29,7 +29,7 @@ in } (lib.mkIf cfg.enable { home = { - inherit (feature) packages; + packages = feature.homePackages; sessionVariables.GOPATH = "${config.xdg.dataHome}/go"; }; })