Compare commits
3 commits
57a2e3b839
...
b1444e8967
Author | SHA1 | Date | |
---|---|---|---|
b1444e8967 | |||
fd190dbdcd | |||
97e3a87d12 |
4 changed files with 53 additions and 3 deletions
|
@ -17,6 +17,7 @@
|
|||
"cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY="
|
||||
"flyingcircus.io-1:Rr9CwiPv8cdVf3EQu633IOTb6iJKnWbVfCC8x8gVz2o="
|
||||
];
|
||||
sandbox = "relaxed";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -36,8 +36,20 @@ in
|
|||
${cfg.browserCommand} \
|
||||
--user-data-dir="$HOME/Library/Application Support/Google/Captive" \
|
||||
--proxy-server="socks5://$PROXY" \
|
||||
--host-resolver-rules="MAP * ~NOTFOUND , EXCLUDE localhost" \
|
||||
--no-first-run --new-window --incognito \
|
||||
--proxy-bypass-list="<-loopback>" \
|
||||
--no-first-run \
|
||||
--new-window \
|
||||
--incognito \
|
||||
--no-default-browser-check \
|
||||
--no-crash-upload \
|
||||
--disable-extensions \
|
||||
--disable-sync \
|
||||
--disable-background-networking \
|
||||
--disable-client-side-phishing-detection \
|
||||
--disable-component-update \
|
||||
--disable-translate \
|
||||
--disable-web-resources \
|
||||
--safebrowsing-disable-auto-update \
|
||||
http://example.com
|
||||
'';
|
||||
};
|
||||
|
|
31
home/modules/llm.nix
Normal file
31
home/modules/llm.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
pkgs,
|
||||
lib,
|
||||
inputs,
|
||||
config,
|
||||
system,
|
||||
...
|
||||
}:
|
||||
let
|
||||
myAider = pkgs.aider-chat;
|
||||
# FIXME: darwin build failure due to cfn-lint-1.32.1
|
||||
# myAider = pkgs.aider-chat.withOptional {
|
||||
# withPlaywright = true;
|
||||
# withBrowser = true;
|
||||
# withHelp = true;
|
||||
# withBedrock = false;
|
||||
# };
|
||||
in
|
||||
{
|
||||
home.packages = [
|
||||
myAider
|
||||
pkgs.claude-code
|
||||
];
|
||||
#nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "claude-code" ]; # nixpkgs.config merging is unfortunately broken
|
||||
# TODO: API token e.g. via sops
|
||||
# TODO: proper codium and llm enable options
|
||||
home.sessionVariables = {
|
||||
AIDER_EDITOR = "codium --wait";
|
||||
DISABLE_TELEMETRY = 1; # for claude-code
|
||||
};
|
||||
}
|
|
@ -12,6 +12,7 @@ let
|
|||
unstable = inputs.nixos-unstable.legacyPackages.${system};
|
||||
in
|
||||
{
|
||||
imports = [ ./modules/llm.nix ];
|
||||
|
||||
schmittlauch.packages = {
|
||||
graphics = true;
|
||||
|
@ -129,7 +130,12 @@ in
|
|||
ThrottleInterval = 60;
|
||||
};
|
||||
};
|
||||
nixpkgs.config.allowUnfreePredicate = pkg: builtins.elem (lib.getName pkg) [ "1password-cli" ];
|
||||
nixpkgs.config.allowUnfreePredicate =
|
||||
pkg:
|
||||
builtins.elem (lib.getName pkg) [
|
||||
"1password-cli"
|
||||
"claude-code"
|
||||
]; # nixpkgs.config merging is unfortunately broken
|
||||
|
||||
home.stateVersion = "22.05";
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue