flake update
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
./nushell.nix
|
||||
./secrets.nix
|
||||
./starship.nix
|
||||
./television.nix
|
||||
./zellij.nix
|
||||
];
|
||||
|
||||
@@ -23,6 +24,12 @@
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
|
||||
programs.nix-index = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableNushellIntegration = true;
|
||||
};
|
||||
|
||||
programs.zoxide = {
|
||||
enable = true;
|
||||
enableFishIntegration = true;
|
||||
@@ -89,9 +96,9 @@
|
||||
nushellPlugins.skim
|
||||
progress
|
||||
ripgrep
|
||||
rocmPackages.rocm-smi
|
||||
rocmPackages.rocminfo
|
||||
rocmPackages.rocm-runtime
|
||||
# rocmPackages.rocm-smi
|
||||
# rocmPackages.rocminfo
|
||||
# rocmPackages.rocm-runtime
|
||||
tldr
|
||||
pomodoro-timer
|
||||
trash-cli
|
||||
|
||||
@@ -27,8 +27,19 @@ in {
|
||||
$env.SSH_AUTH_SOCK = "/run/user/1000/gnupg/S.gpg-agent.ssh"
|
||||
$env.PATH = ($env.PATH | split row (char esep) | append "/home/sascha.koenig/.cache/.bun/bin" | uniq)
|
||||
$env.FLAKE = $"($env.HOME)/p/NIX/nixos-config"
|
||||
#source /run/agenix/${config.home.username}-secrets
|
||||
|
||||
# Load kestractl-env from agenix
|
||||
if ("/run/agenix/kestractl-env" | path exists) {
|
||||
open /run/agenix/kestractl-env
|
||||
| lines
|
||||
| where {($in | str trim | str length) > 0}
|
||||
| parse "{key}={value}"
|
||||
| update value {str trim -c '"'}
|
||||
| transpose -r -d
|
||||
| load-env
|
||||
}
|
||||
'';
|
||||
|
||||
# if (tty) == "/dev/tty1" {
|
||||
# exec uwsm start -S -F /run/current-system/sw/bin/Hyprland
|
||||
# }
|
||||
@@ -67,80 +78,9 @@ in {
|
||||
alias vi = nvim
|
||||
alias vim = nvim
|
||||
|
||||
def history_fuzzy [] {
|
||||
let selected = (
|
||||
history
|
||||
| reverse
|
||||
| get command
|
||||
| uniq
|
||||
| to text
|
||||
| ^fzf
|
||||
)
|
||||
if ($selected | is-not-empty) {
|
||||
commandline edit ($selected)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
}
|
||||
def --env dir_fuzzy [] {
|
||||
let selected = (
|
||||
fd --type directory
|
||||
| ^fzf
|
||||
)
|
||||
cd $selected
|
||||
}
|
||||
def find_fuzzy [] {
|
||||
# Find non-hidden text files with matches for any content and select one via fuzzy search
|
||||
let selected = (
|
||||
^fd --type file --no-hidden -X rg -l --files-with-matches .
|
||||
| lines
|
||||
| to text
|
||||
| ^fzf
|
||||
)
|
||||
if ($selected | is-not-empty) {
|
||||
^$env.EDITOR $selected
|
||||
}
|
||||
}
|
||||
|
||||
$env.config = {
|
||||
keybindings: [
|
||||
{
|
||||
name: history_fuzzy
|
||||
modifier: control
|
||||
keycode: char_r
|
||||
mode: [emacs, vi_insert, vi_normal]
|
||||
event: [
|
||||
{
|
||||
send: executehostcommand
|
||||
cmd: "history_fuzzy"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
name: dir_fuzzy
|
||||
modifier: alt
|
||||
keycode: char_c
|
||||
mode: [emacs, vi_insert, vi_normal]
|
||||
event: [
|
||||
{
|
||||
send: executehostcommand
|
||||
cmd: "dir_fuzzy"
|
||||
}
|
||||
]
|
||||
}
|
||||
{
|
||||
name: history_fuzzy
|
||||
modifier: control
|
||||
keycode: char_t
|
||||
mode: [emacs, vi_insert, vi_normal]
|
||||
event: [
|
||||
{
|
||||
send: executehostcommand
|
||||
cmd: "find_fuzzy"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
if (which tv | is-not-empty) {
|
||||
mkdir ($nu.data-dir | path join "vendor/autoload")
|
||||
tv init nu | save -f ($nu.data-dir | path join "vendor/autoload/tv.nu")
|
||||
}
|
||||
'';
|
||||
};
|
||||
|
||||
64
home/features/cli/television.nix
Normal file
64
home/features/cli/television.nix
Normal file
@@ -0,0 +1,64 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}:
|
||||
with lib; let
|
||||
cfg = config.features.cli.television;
|
||||
in {
|
||||
options.features.cli.television.enable = mkEnableOption "enable nitch";
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.television = {
|
||||
enable = true;
|
||||
channels = {
|
||||
tldr = {
|
||||
metadata = {
|
||||
description = "Browse TLDR pages";
|
||||
name = "tldr";
|
||||
requirements = [
|
||||
"tldr"
|
||||
];
|
||||
};
|
||||
preview = {
|
||||
command = "tldr '{}'";
|
||||
};
|
||||
source = {
|
||||
command = "tldr --list";
|
||||
};
|
||||
};
|
||||
git-diff = {
|
||||
metadata = {
|
||||
description = "A channel to select files from git diff commands";
|
||||
name = "git-diff";
|
||||
requirements = [
|
||||
"git"
|
||||
];
|
||||
};
|
||||
preview = {
|
||||
command = "git diff HEAD --color=always -- '{}'";
|
||||
};
|
||||
source = {
|
||||
command = "git diff --name-only HEAD";
|
||||
};
|
||||
};
|
||||
git-log = {
|
||||
metadata = {
|
||||
description = "A channel to select from git log entries";
|
||||
name = "git-log";
|
||||
requirements = [
|
||||
"git"
|
||||
];
|
||||
};
|
||||
preview = {
|
||||
command = "git show -p --stat --pretty=fuller --color=always '{0}'";
|
||||
};
|
||||
source = {
|
||||
command = "git log --oneline --date=short --pretty=\"format:%h %s %an %cd\" \"$@\"";
|
||||
output = "{split: :0}";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -40,6 +40,7 @@
|
||||
bc
|
||||
bun
|
||||
devpod
|
||||
kestractl
|
||||
kitty
|
||||
#devpod-desktop
|
||||
(python3.withPackages (ps:
|
||||
|
||||
@@ -51,6 +51,19 @@
|
||||
output = 128000;
|
||||
};
|
||||
};
|
||||
"claude-haiku-4-5" = {
|
||||
name = "Claude Haiku 4.5";
|
||||
options = {
|
||||
thinking = {
|
||||
type = "enabled";
|
||||
budget_tokens = 16000;
|
||||
};
|
||||
};
|
||||
limit = {
|
||||
context = 200000;
|
||||
output = 64000;
|
||||
};
|
||||
};
|
||||
"claude-sonnet-4-6" = {
|
||||
name = "Claude Sonnet 4.6";
|
||||
options = {
|
||||
@@ -97,22 +110,22 @@
|
||||
model = "litellm/claude-sonnet-4-6";
|
||||
};
|
||||
explore = {
|
||||
model = "zai-coding-plan/glm-4.5-air";
|
||||
model = "litellm/claude-haiku-4-5";
|
||||
};
|
||||
multimodal-looker = {
|
||||
model = "zai-coding-plan/glm-4.6v";
|
||||
model = "litellm/gpt-5.3-codex";
|
||||
};
|
||||
prometheus = {
|
||||
model = "litellm/claude-opus-4-6";
|
||||
};
|
||||
metis = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
model = "litellm/claude-opus-4-6";
|
||||
};
|
||||
momus = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
model = "litellm/claude-opus-4-6";
|
||||
};
|
||||
atlas = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
model = "litellm/claude-sonnet-4-6";
|
||||
};
|
||||
};
|
||||
categories = {
|
||||
@@ -120,19 +133,22 @@
|
||||
model = "zai-coding-plan/glm-5";
|
||||
};
|
||||
ultrabrain = {
|
||||
model = "litellm/gpt-5.3-codex";
|
||||
model = "litellm/claude-opus-4-6";
|
||||
};
|
||||
deep = {
|
||||
model = "litellm/claude-sonnet-4-6";
|
||||
};
|
||||
artistry = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
};
|
||||
quick = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
model = "litellm/claude-haiku-4-5";
|
||||
};
|
||||
unspecified-low = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
model = "litellm/claude-sonnet-4-6";
|
||||
};
|
||||
unspecified-high = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
model = "litellm/claude-opus-4-6";
|
||||
};
|
||||
writing = {
|
||||
model = "zai-coding-plan/glm-5";
|
||||
|
||||
@@ -17,7 +17,6 @@ in {
|
||||
# makemkv
|
||||
# mediainfo
|
||||
amf
|
||||
blueberry
|
||||
ffmpeg_6-full
|
||||
gst_all_1.gstreamer
|
||||
gst_all_1.gst-vaapi
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
imports = [
|
||||
./home.nix
|
||||
../../common
|
||||
../../features/cli
|
||||
../../features/cli/fish.nix
|
||||
../../features/cli/fzf.nix
|
||||
../../features/cli/nushell.nix
|
||||
|
||||
@@ -60,6 +60,7 @@ in {
|
||||
nitch.enable = true;
|
||||
secrets.enable = true;
|
||||
starship.enable = true;
|
||||
television.enable = true;
|
||||
};
|
||||
desktop = {
|
||||
coding.enable = true;
|
||||
|
||||
Reference in New Issue
Block a user