Compare commits

...

2 Commits

4 changed files with 27 additions and 2 deletions
+3
View File
@@ -35,6 +35,9 @@
claude-code claude-code
opencode opencode
# C++ stdlib for Python venv native extensions
pkgs.stdenv.cc.cc.lib
# Custom packages # Custom packages
(pkgs.callPackage ../pkgs/ax {}) (pkgs.callPackage ../pkgs/ax {})
+5 -1
View File
@@ -1,4 +1,4 @@
{ config, lib, ... }: { config, lib, pkgs, ... }:
{ {
programs.fzf = { programs.fzf = {
@@ -28,6 +28,10 @@
PROMPT='%F{green}%n@%m%f:%F{blue}%~%f %F{240}''${vcs_info_msg_0_}%f %# ' 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 = { shellAliases = {
cat = "bat"; cat = "bat";
}; };
+1
View File
@@ -8,6 +8,7 @@
networking.hostName = "macvm-nix"; networking.hostName = "macvm-nix";
networking.domain = ""; networking.domain = "";
networking.interfaces.enp0s1.mtu = 1400;
# Disko: Auto-partitioning configuration # Disko: Auto-partitioning configuration
disko.devices = { disko.devices = {
+18 -1
View File
@@ -24,6 +24,14 @@
selectedPackages = selectedPackages =
lib.concatMap (lang: languagePackages.${lang} or []) cfg.languages; 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 { in lib.mkIf cfg.enable {
# Core development tools # Core development tools
@@ -37,7 +45,16 @@
cmake cmake
ripgrep ripgrep
jq 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) # Enable container support (optional)
#virtualisation.docker.enable = true; #virtualisation.docker.enable = true;