diff --git a/nixcfgs/secrets/secrets.yaml b/nixcfgs/secrets/secrets.yaml index c3f1077..a5caa74 100644 --- a/nixcfgs/secrets/secrets.yaml +++ b/nixcfgs/secrets/secrets.yaml @@ -1,5 +1,6 @@ tavily_api: ENC[AES256_GCM,data:2hdsutsj0mqytujPIF1t1gpfSE7ym4WV2/lDbdLUw4yyLv7Rfvgtww8=,iv:kIYZ7ETQtQzyf2ymsgSTrvOh00qLQt6715SEi3dqxt4=,tag:M4qTgeoMlcnfh7D418ppfQ==,type:str] openrouter_api: ENC[AES256_GCM,data:XmsmgAEdiYP90JHnKmdy/jzgaFhmoU/wdYqxahIZ3NMZshgGIWv/fq7apOH8bh+yTytiIMrOdGGP1LZRHWVMeTqoDnWAimpweA==,iv:m2qykUpt9qE4ZAIHzQ0qhFUqEhPG6TiuVZWK+kOP2fg=,tag:Jtr/s17DJMVW215sh2/6+Q==,type:str] +anki_sync_key: ENC[AES256_GCM,data:58zVvhbW6DS+CaxYHBUh5w==,iv:f8XOGMHS72p8cEVuburgsWBOpkw+axNjyP09NR4P3lo=,tag:UZzrdhnEfxtxCZwviEM+4g==,type:str] sops: age: - recipient: age1z2km2vu3mw6usw8p2rhjzkugddmsvk0ypwjw76cscyy3ar3tnufqtrv3nu @@ -20,7 +21,7 @@ sops: MlBBYzA4bWkyOFNzWlFWbWhDMU9VSG8KJGAr3Gjg6+1OUC+d8+Yu+AW+zzfQ2MtX 7RzIvGv4R3YtAHlX79BcIT6XwGMXVIF86Fu2QOoU7u8o4wpyAt0CXA== -----END AGE ENCRYPTED FILE----- - lastmodified: "2025-11-21T08:42:38Z" - mac: ENC[AES256_GCM,data:JIfTM+8G+GLRoIIOSQaJPhg2/12Gqyf5thTuvs1EiL9sdG/J3DFkgpS9sE98FGqQDFHvqrKy+PcxuoAv0nRl99ftspi2Y5oiU3oqIzeDlyMRCaIITtZiWWhSr02LbD5MwkYjlk5mGWDg+GPisfUinY+cxZkmI8Ny1KZKAPr1rJE=,iv:mDOYhCJH1ODy7H8P/5sLBYxwxKCrsowTNirEU0BV+bw=,tag:QOjaXmwbrBhA8Y9VVihhzQ==,type:str] + lastmodified: "2025-11-23T15:05:53Z" + mac: ENC[AES256_GCM,data:VBgIJR2RJpaB8sSO/BhNbBdU8QYk2csS07a4mCSBJGonuT9iO3mLr65uTI76uayZS/2uiDCYUMGR635IlBhAc8pvy/bif8FCheVNestUjJeppS44fjatS+Wz+i6hz3ED9ECpEFlgoqi31uG0hzPeECinVXKDZr3o0JJmw4s7ZM8=,iv:0D4YD8C0rtXmJ+Qv7rzMWUJ2CaUogP6sQk6GEJFpnSo=,tag:nlT55c7ikMqq2TImVp9cSA==,type:str] unencrypted_suffix: _unencrypted version: 3.11.0 diff --git a/nixcfgs/users/js0ny/packages/cli.nix b/nixcfgs/users/js0ny/packages/cli.nix index 7ca3ca9..727e875 100644 --- a/nixcfgs/users/js0ny/packages/cli.nix +++ b/nixcfgs/users/js0ny/packages/cli.nix @@ -63,6 +63,10 @@ yt-dlp asciinema ansi2html + httpie + gron + jless + unar ] ++ ( if pkgs.stdenv.isDarwin diff --git a/nixcfgs/users/js0ny/packages/gui.nix b/nixcfgs/users/js0ny/packages/gui.nix index 43f6f82..125ff94 100644 --- a/nixcfgs/users/js0ny/packages/gui.nix +++ b/nixcfgs/users/js0ny/packages/gui.nix @@ -93,13 +93,10 @@ in { kdePackages.kdenlive gimp steam-run - bottles - lutris rustdesk - kdePackages.krdc + remmina kdePackages.breeze zotero - anki-bin feishin bruno bruno-cli @@ -109,11 +106,11 @@ in { logisim-evolution onlyoffice-desktopeditors wayland-bongocat + kdePackages.qttools antigravity ] ++ (mkFcitxIM [ pkgs.neovim-qt - pkgs.anki ]) ++ (mkElectronWayland [ pkgs.ticktick @@ -132,4 +129,5 @@ in { ]; services.protonmail-bridge.enable = true; + services.remmina.enable = true; } diff --git a/nixcfgs/users/js0ny/programs/aichat.nix b/nixcfgs/users/js0ny/programs/aichat.nix index 2df51dc..7126bf4 100644 --- a/nixcfgs/users/js0ny/programs/aichat.nix +++ b/nixcfgs/users/js0ny/programs/aichat.nix @@ -5,7 +5,7 @@ model = "openrouter:qwen/qwen3-235b-a22b-2507"; clients = [ { - type = "openai-compatbile"; + type = "openai-compatible"; name = "openrouter"; api_base = "https://openrouter.ai/api/v1"; models = [ diff --git a/nixcfgs/users/js0ny/programs/anki.nix b/nixcfgs/users/js0ny/programs/anki.nix index eb2c33e..8a127f7 100644 --- a/nixcfgs/users/js0ny/programs/anki.nix +++ b/nixcfgs/users/js0ny/programs/anki.nix @@ -1,4 +1,8 @@ -{pkgs, ...}: { +{ + pkgs, + config, + ... +}: { home.sessionVariables.ANKI_WAYLAND = 1; programs.anki = { enable = true; @@ -7,5 +11,11 @@ review-heatmap recolor ]; + sync = { + autoSync = true; + autoSyncMediaMinutes = 15; + username = "ankiweb.unusable450@passmail.net"; + keyFile = config.sops.secrets."ANKI_SYNC_KEY".path; + }; }; } diff --git a/nixcfgs/users/js0ny/programs/desktop/wayland-wm/niri/window-rules.nix b/nixcfgs/users/js0ny/programs/desktop/wayland-wm/niri/window-rules.nix index fc80aa0..79ebf25 100644 --- a/nixcfgs/users/js0ny/programs/desktop/wayland-wm/niri/window-rules.nix +++ b/nixcfgs/users/js0ny/programs/desktop/wayland-wm/niri/window-rules.nix @@ -48,6 +48,9 @@ app-id = "^org.kde.(ark|dolphin)$"; title = "^Extracting"; } + { + app-id = "^steam$"; + } ]; open-focused = false; default-floating-position = { @@ -122,6 +125,7 @@ { matches = [ {app-id = "^org.kde.krdc$";} + {app-id = "^org.remmina.Remmina$";} {app-id = "^\.virt-manager-wrapped$";} {title = "^🌐 ssh.*";} ]; diff --git a/nixcfgs/users/js0ny/programs/firefox/search.nix b/nixcfgs/users/js0ny/programs/firefox/search.nix index b7a8984..65c5c82 100644 --- a/nixcfgs/users/js0ny/programs/firefox/search.nix +++ b/nixcfgs/users/js0ny/programs/firefox/search.nix @@ -115,7 +115,7 @@ in { }; home-manager = { name = "Home Manager Options"; - urls = [{template = "https://home-manager-options.extranix.com/?query={searchTerms}";}]; + urls = [{template = "https://home-manager-options.extranix.com/?query={searchTerms}&release=master";}]; icon = "https://nixos.org/favicon.ico"; definedAliases = ["hm"]; }; diff --git a/nixcfgs/users/js0ny/programs/libvirt.nix b/nixcfgs/users/js0ny/programs/libvirt.nix new file mode 100644 index 0000000..47f6125 --- /dev/null +++ b/nixcfgs/users/js0ny/programs/libvirt.nix @@ -0,0 +1,27 @@ +{pkgs, ...}: let + virt-manager-view-fzf = pkgs.writeShellScriptBin "virt-manager-view-fzf" '' + #!/usr/bin/env bash + + VM=$(virsh --connect qemu:///system list --name --state-running | sed '/^$/d' | fzf --height=20% --border --prompt="Select VM > ") + + if [ -n "$VM" ]; then + echo "Opening console for $VM..." + virt-manager --connect qemu:///system --show-domain-console "$VM" &>/dev/null & + else + echo "No VM selected." + fi + ''; + devs = [ + "0bda:9210" # Realtek Semiconductor Corp. RTL9210 M.2 NVME Adapter + ]; +in { + home.packages = with pkgs; [ + virt-manager-view-fzf + remmina + ]; + + xdg.configFile."libvirt/libvirt.conf" = { + text = ''uri_default = "qemu:///system"''; + enable = true; + }; +} diff --git a/nixcfgs/users/js0ny/programs/rime.nix b/nixcfgs/users/js0ny/programs/rime.nix index cb0c60e..4728cc5 100644 --- a/nixcfgs/users/js0ny/programs/rime.nix +++ b/nixcfgs/users/js0ny/programs/rime.nix @@ -180,7 +180,7 @@ in { /Library/Input\ Methods/Squirrel.app/Contents/MacOS/Squirrel --reload '' else - lib.hm.entryAfter ["writeBoundary"] '' - qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.SetConfig "fcitx://onfig/addon/rime/deploy" "" + lib.hm.dag.entryAfter ["writeBoundary"] '' + # ${pkgs.kdePackages.qttools}/bin/qdbus org.fcitx.Fcitx5 /controller org.fcitx.Fcitx.Controller1.SetConfig "fcitx://onfig/addon/rime/deploy" "" ''; } diff --git a/nixcfgs/users/js0ny/programs/shell/carapace.nix b/nixcfgs/users/js0ny/programs/shell/carapace.nix new file mode 100644 index 0000000..4026c4e --- /dev/null +++ b/nixcfgs/users/js0ny/programs/shell/carapace.nix @@ -0,0 +1,9 @@ +{...}: { + programs.carapace = { + enable = true; + enableBashIntegration = true; + enableZshIntegration = true; + enableFishIntegration = true; + enableNushellIntegration = true; + }; +} diff --git a/nixcfgs/users/js0ny/programs/shell/nu.nix b/nixcfgs/users/js0ny/programs/shell/nu.nix index a78f07c..51868c1 100644 --- a/nixcfgs/users/js0ny/programs/shell/nu.nix +++ b/nixcfgs/users/js0ny/programs/shell/nu.nix @@ -3,7 +3,10 @@ in { programs.nushell = { enable = true; - shellAliases = aliases; + shellAliases = { + "la" = "ls -a"; + "lt" = "lsd --tree"; + }; extraConfig = '' $env.config.show_banner = false ''; diff --git a/nixcfgs/users/js0ny/programs/sops.nix b/nixcfgs/users/js0ny/programs/sops.nix index a2b50f4..dc56741 100644 --- a/nixcfgs/users/js0ny/programs/sops.nix +++ b/nixcfgs/users/js0ny/programs/sops.nix @@ -39,6 +39,9 @@ in { "TAVILY_API_KEY" = { key = "tavily_api"; }; + "ANKI_SYNC_KEY" = { + key = "anki_sync_key"; + }; }; }; diff --git a/nixcfgs/users/js0ny/programs/wine.nix b/nixcfgs/users/js0ny/programs/wine.nix new file mode 100644 index 0000000..928461c --- /dev/null +++ b/nixcfgs/users/js0ny/programs/wine.nix @@ -0,0 +1,7 @@ +{pkgs, ...}: { + home.packages = with pkgs; [ + protontricks + bottles + lutris + ]; +} diff --git a/nixcfgs/users/js0ny/zephyrus.nix b/nixcfgs/users/js0ny/zephyrus.nix index a8d4fdc..b4d083c 100644 --- a/nixcfgs/users/js0ny/zephyrus.nix +++ b/nixcfgs/users/js0ny/zephyrus.nix @@ -18,6 +18,8 @@ ./programs/shell/bash.nix ./programs/shell/zsh.nix ./programs/shell/fish.nix + ./programs/shell/nu.nix + ./programs/shell/carapace.nix ./programs/shell/direnv.nix # Personal Program @@ -53,6 +55,8 @@ ./programs/aichat.nix ./programs/tmux.nix ./programs/kitty.nix + ./programs/wine.nix + ./programs/anki.nix # Desktop Linux ./programs/desktop/plasma @@ -80,10 +84,5 @@ keyboardBacklightStep = "1"; }; - xdg.configFile."libvirt/libvirt.conf" = { - text = ''uri_default = "qemu:///system"''; - enable = true; - }; - home.stateVersion = "25.05"; }