diff --git a/custom/override.nix b/custom/override.nix index a89c2ce..7915bbf 100644 --- a/custom/override.nix +++ b/custom/override.nix @@ -1,29 +1,4 @@ final: prev: { - # ccacheWrapper = prev.ccacheWrapper.override { - # extraConfig = '' - # export CCACHE_COMPRESS=1 - # export CCACHE_SLOPPINESS=random_seed,time_macros - # export CCACHE_COMPILERCHECK=content - # export CCACHE_DIR="/home/thek0tyara/Documents/cache/ccache/" - # export CCACHE_UMASK=007 - # if [ ! -d "$CCACHE_DIR" ]; then - # echo "=====" - # echo "Directory '$CCACHE_DIR' does not exist" - # echo "Please create it with:" - # echo " sudo mkdir -m0770 '$CCACHE_DIR'" - # echo " sudo chown root:nixbld '$CCACHE_DIR'" - # echo "=====" - # exit 1 - # fi - # if [ ! -w "$CCACHE_DIR" ]; then - # echo "=====" - # echo "Directory '$CCACHE_DIR' is not accessible for user $(whoami)" - # echo "Please verify its access permissions" - # echo "=====" - # exit 1 - # fi - # ''; - # }; # xdg-desktop-portal-cosmic = prev.xdg-desktop-portal-cosmic.overrideAttrs (old: { # postPatch = (old.postPatch or "") + '' # unitDir="$out/lib/systemd/user" diff --git a/flake.nix b/flake.nix index fed8d49..946c4fa 100644 --- a/flake.nix +++ b/flake.nix @@ -113,6 +113,7 @@ "root" "thek0tyara" ]; + sandbox = "relaxed"; extra-sandbox-paths = [ "/run/sccache" "/var/cache/sccache" diff --git a/home.nix b/home.nix index 83c0e0f..2858944 100644 --- a/home.nix +++ b/home.nix @@ -116,6 +116,11 @@ OLLAMA_HOST = "127.0.0.1:11434"; SCCACHE_DIR = "${config.home.homeDirectory}/.cache/sccache"; SCCACHE_SERVER_UDS = "${config.home.homeDirectory}/.cache/sccache/server.sock"; + ### openrouter fun + OPENROUTER_API_KEY = config.age.secrets."openrouter-open" ; + ANTHROPIC_BASE_URL = "https://openrouter.ai/api"; + ANTHROPIC_AUTH_TOKEN = ${config.home.sessionVariables.OPENROUTER_API_KEY}; + ANTHROPIC_API_KEY = ""; }; file = { ".config/waybar/power_menu.xml".text = ''