97 lines
2.5 KiB
Nix
97 lines
2.5 KiB
Nix
{
|
|
inputs,
|
|
config,
|
|
home,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: {
|
|
options = {
|
|
crony.shell-additions.enable = lib.mkEnableOption "Enable additional shell software.";
|
|
};
|
|
|
|
config = lib.mkIf config.crony.shell-additions.enable {
|
|
home.packages = with pkgs; [
|
|
android-tools
|
|
nix-output-monitor
|
|
nvd
|
|
nurl
|
|
# termsonic
|
|
inputs.agenix.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.deploy-rs.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.hb-downloader.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.extract-romset.packages.${stdenv.hostPlatform.system}.default
|
|
inputs.note.packages.${stdenv.hostPlatform.system}.default
|
|
croc
|
|
];
|
|
|
|
programs.opencode = {
|
|
enable = true;
|
|
settings = {
|
|
model = "ollama/gpt-oss-20b-high-32k";
|
|
provider = {
|
|
ollama = {
|
|
npm = "@ai-sdk/openai-compatible";
|
|
name = "Ollama";
|
|
options = {
|
|
baseURL = "http://127.0.0.1:11434/v1";
|
|
};
|
|
models = {
|
|
"gpt-oss-20b-high-32k" = {
|
|
name = "gpt oss";
|
|
id = "gpt-oss-20b-32k";
|
|
reasoning = true;
|
|
tools = true;
|
|
options = {
|
|
extraBody = {
|
|
think = "high";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
programs.beets = {
|
|
enable = true;
|
|
settings = {
|
|
directory = "~/music/to-listen/";
|
|
library = "~/.local/share/beets.db";
|
|
plugins = "fromfilename chroma embedart fetchart duplicates";
|
|
import = {
|
|
move = true;
|
|
};
|
|
};
|
|
};
|
|
|
|
# Setup rclone
|
|
programs.rclone = {
|
|
enable = true;
|
|
remotes = {
|
|
homeassistant = {
|
|
config = {
|
|
type = "sftp";
|
|
host = "assistant.home.cronyakatsuki.xyz";
|
|
user = "root";
|
|
key_file = "${config.home.homeDirectory}/.ssh/main";
|
|
};
|
|
mounts = {
|
|
"/var/lib/homeassistant" = {
|
|
enable = true;
|
|
mountPoint = "/home/crony/docs/assistant";
|
|
options = {
|
|
default-permissions = true;
|
|
vfs-cache-mode = "writes";
|
|
buffer-size = "64M";
|
|
multi-thread-streams = 4;
|
|
multi-thread-cutoff = "250M";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
}
|