Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 82f42b9329 | |||
| 69e81bb6e0 |
@@ -35,6 +35,9 @@
|
||||
claude-code
|
||||
opencode
|
||||
|
||||
# C++ stdlib for Python venv native extensions
|
||||
pkgs.stdenv.cc.cc.lib
|
||||
|
||||
# Custom packages
|
||||
(pkgs.callPackage ../pkgs/ax {})
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ config, lib, ... }:
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
programs.fzf = {
|
||||
@@ -28,6 +28,10 @@
|
||||
PROMPT='%F{green}%n@%m%f:%F{blue}%~%f %F{240}''${vcs_info_msg_0_}%f %# '
|
||||
'';
|
||||
|
||||
sessionVariables = {
|
||||
LD_LIBRARY_PATH = "${pkgs.stdenv.cc.cc.lib}/lib";
|
||||
};
|
||||
|
||||
shellAliases = {
|
||||
cat = "bat";
|
||||
};
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
networking.hostName = "macvm-nix";
|
||||
networking.domain = "";
|
||||
networking.interfaces.enp0s1.mtu = 1400;
|
||||
|
||||
# Disko: Auto-partitioning configuration
|
||||
disko.devices = {
|
||||
|
||||
@@ -24,6 +24,14 @@
|
||||
selectedPackages =
|
||||
lib.concatMap (lang: languagePackages.${lang} or []) cfg.languages;
|
||||
|
||||
# C/C++ libraries needed for compiled Python packages (numpy, etc.)
|
||||
pythonDevLibraries = with pkgs;
|
||||
lib.optionals (lib.elem "python" cfg.languages) [
|
||||
glibc
|
||||
stdenv.cc.cc.lib
|
||||
libxcrypt
|
||||
];
|
||||
|
||||
in lib.mkIf cfg.enable {
|
||||
|
||||
# Core development tools
|
||||
@@ -37,7 +45,16 @@
|
||||
cmake
|
||||
ripgrep
|
||||
jq
|
||||
] ++ selectedPackages;
|
||||
] ++ selectedPackages ++ pythonDevLibraries;
|
||||
|
||||
# Set library paths for venv compatibility with compiled packages
|
||||
environment.variables = lib.mkIf (lib.elem "python" cfg.languages) {
|
||||
LD_LIBRARY_PATH = lib.makeLibraryPath (with pkgs; [
|
||||
glibc
|
||||
stdenv.cc.cc.lib
|
||||
libxcrypt
|
||||
]);
|
||||
};
|
||||
|
||||
# Enable container support (optional)
|
||||
#virtualisation.docker.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user