5 Commits

Author SHA1 Message Date
Tom Alexander
a6667f8424 Support installing pi extensions.. 2026-12-02 12:43:13 -05:00
Tom Alexander
a152cf9935 Enable quark distributed build on work machine. 2026-12-01 17:58:19 -05:00
Tom Alexander
53931b217a Install claude code into the robot VM. 2026-11-24 18:04:52 -05:00
Tom Alexander
e28625ea8a Install python in the robot vm. 2026-11-23 12:40:37 -05:00
Tom Alexander
2c2c044072 Fix building packages on my builder VM. 2026-11-23 12:40:37 -05:00
5 changed files with 61 additions and 2 deletions

View File

@@ -26,6 +26,7 @@ in
./roles/build_in_ram
./roles/chromecast
./roles/chromium
./roles/claude
./roles/d2
./roles/direnv
./roles/disko
@@ -289,6 +290,15 @@ in
(disableOptimizations "nototools") # Needs to use the same version of python as the zopfli package
(disableOptimizations "lib2geom") # Tests failing: ellipse-test, elliptical-arc-test, line-test, polynomial-test
(disableOptimizations "libjpeg_turbo") # Test failing: djpeg12-shared-3x2-float-prog-cmp
(disableOptimizations "libjxl") # Test failing, but only on my builder VM. I assume related to AVX512: DjxlFuzzerTestInstantiation
(disableOptimizationsScope "kdePackages" "qtbase") # Issue with my bhyve VM: Incompatible processor. This Qt build requires the following features: avx512ifma avx512vbmi avx512vbmi2 gfni avx512bitalg avx512vpopcntdq
(disableOptimizationsScope "libsForQt5" "qtbase") # Issue with my bhyve VM: Incompatible processor. This Qt build requires the following features: avx512ifma avx512vbmi avx512vbmi2 gfni avx512bitalg avx512vpopcntdq
(disableOptimizationsScope "qt6Packages" "qtbase") # Issue with my bhyve VM: Incompatible processor. This Qt build requires the following features: avx512ifma avx512vbmi avx512vbmi2 gfni avx512bitalg avx512vpopcntdq
(disableOptimizations "qt5") # Issue with my bhyve VM: Incompatible processor. This Qt build requires the following features: avx512ifma avx512vbmi avx512vbmi2 gfni avx512bitalg avx512vpopcntdq
(disableOptimizations "qt6") # Issue with my bhyve VM: Incompatible processor. This Qt build requires the following features: avx512ifma avx512vbmi avx512vbmi2 gfni avx512bitalg avx512vpopcntdq
(disableTests "sequoia-sq") # Test failing on my builder vm: sq_key_generate_dev_null
(disableOptimizations "tzdata") # Tests failing on my builder vm
(disableOptimizations "simdutf") # Tests failing on my builder vm
];
hardware.firmware =

View File

@@ -4,7 +4,7 @@
config = {
me.distributed_build.enable = true;
me.distributed_build.machines.quark = {
enable_build = false;
enable_build = true;
enable_substituter = false;
additional_config = {
speedFactor = 2;

View File

@@ -74,8 +74,10 @@
# nix.sshServe.enable = true;
# nix.sshServe.keys = [ "ssh-dss AAAAB3NzaC1k... bob@example.org" ];
me.claude.enable = true;
me.dont_use_substituters.enable = true;
me.minimal_base.enable = true;
me.pi_coding_agent.enable = true;
me.python.enable = true;
};
}

View File

@@ -0,0 +1,41 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
claude.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install claude.";
};
};
config = lib.mkIf config.me.claude.enable {
environment.systemPackages = with pkgs; [
claude-code
];
allowedUnfree = [ "claude-code" ];
environment.persistence."/persist" = lib.mkIf (config.me.mountPersistence) {
hideMounts = true;
users.talexander = {
directories = [
{
directory = ".claude";
user = "talexander";
group = "talexander";
mode = "0700";
}
];
};
};
};
}

View File

@@ -31,13 +31,19 @@
buildInputs = [ pkgs.makeWrapper ];
postBuild = ''
wrapProgram $out/bin/pi \
--set-default NPM_CONFIG_PREFIX '$HOME/.pi/npm' \
--set-default PI_SKIP_VERSION_CHECK 1 \
--set-default PI_TELEMETRY 0 \
--set-default PI_OFFLINE 1 \
--set-default LLAMA_BASE_URL http://10.0.2.2:8080 \
--set-default LLAMA_API_KEY optional-secret \
--set-default PI_PROVIDER llama.cpp \
--set-default PI_MODEL qwen3.8_27b_bf16
--set-default PI_MODEL qwen3.8_27b_bf16 \
--prefix PATH : ${
pkgs.lib.makeBinPath [
pkgs.nodejs_latest
]
}
'';
};
})