Compare commits
1 Commits
nix
...
2ea1f9a11d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2ea1f9a11d
|
@@ -26,7 +26,6 @@ in
|
|||||||
./roles/build_in_ram
|
./roles/build_in_ram
|
||||||
./roles/chromecast
|
./roles/chromecast
|
||||||
./roles/chromium
|
./roles/chromium
|
||||||
./roles/claude
|
|
||||||
./roles/d2
|
./roles/d2
|
||||||
./roles/direnv
|
./roles/direnv
|
||||||
./roles/disko
|
./roles/disko
|
||||||
@@ -294,8 +293,6 @@ in
|
|||||||
(disableOptimizationsScope "kdePackages" "qtbase") # Issue with my bhyve VM: Incompatible processor. This Qt build requires the following features: avx512ifma avx512vbmi avx512vbmi2 gfni avx512bitalg avx512vpopcntdq
|
(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 "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
|
(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
|
(disableTests "sequoia-sq") # Test failing on my builder vm: sq_key_generate_dev_null
|
||||||
(disableOptimizations "tzdata") # Tests failing on my builder vm
|
(disableOptimizations "tzdata") # Tests failing on my builder vm
|
||||||
(disableOptimizations "simdutf") # Tests failing on my builder vm
|
(disableOptimizations "simdutf") # Tests failing on my builder vm
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
config = {
|
config = {
|
||||||
me.distributed_build.enable = true;
|
me.distributed_build.enable = true;
|
||||||
me.distributed_build.machines.quark = {
|
me.distributed_build.machines.quark = {
|
||||||
enable_build = true;
|
enable_build = false;
|
||||||
enable_substituter = false;
|
enable_substituter = false;
|
||||||
additional_config = {
|
additional_config = {
|
||||||
speedFactor = 2;
|
speedFactor = 2;
|
||||||
|
|||||||
@@ -74,10 +74,8 @@
|
|||||||
# nix.sshServe.enable = true;
|
# nix.sshServe.enable = true;
|
||||||
# nix.sshServe.keys = [ "ssh-dss AAAAB3NzaC1k... bob@example.org" ];
|
# nix.sshServe.keys = [ "ssh-dss AAAAB3NzaC1k... bob@example.org" ];
|
||||||
|
|
||||||
me.claude.enable = true;
|
|
||||||
me.dont_use_substituters.enable = true;
|
me.dont_use_substituters.enable = true;
|
||||||
me.minimal_base.enable = true;
|
me.minimal_base.enable = true;
|
||||||
me.pi_coding_agent.enable = true;
|
me.pi_coding_agent.enable = true;
|
||||||
me.python.enable = true;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,41 +0,0 @@
|
|||||||
{
|
|
||||||
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";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
|
||||||
}
|
|
||||||
@@ -31,19 +31,13 @@
|
|||||||
buildInputs = [ pkgs.makeWrapper ];
|
buildInputs = [ pkgs.makeWrapper ];
|
||||||
postBuild = ''
|
postBuild = ''
|
||||||
wrapProgram $out/bin/pi \
|
wrapProgram $out/bin/pi \
|
||||||
--set-default NPM_CONFIG_PREFIX '$HOME/.pi/npm' \
|
|
||||||
--set-default PI_SKIP_VERSION_CHECK 1 \
|
--set-default PI_SKIP_VERSION_CHECK 1 \
|
||||||
--set-default PI_TELEMETRY 0 \
|
--set-default PI_TELEMETRY 0 \
|
||||||
--set-default PI_OFFLINE 1 \
|
--set-default PI_OFFLINE 1 \
|
||||||
--set-default LLAMA_BASE_URL http://10.0.2.2:8080 \
|
--set-default LLAMA_BASE_URL http://10.0.2.2:8080 \
|
||||||
--set-default LLAMA_API_KEY optional-secret \
|
--set-default LLAMA_API_KEY optional-secret \
|
||||||
--set-default PI_PROVIDER llama.cpp \
|
--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
|
|
||||||
]
|
|
||||||
}
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user