Desktop-адаптация opencode на rydiwo (device: secondary, Plasma 6/Wayland). - новый модуль home/modules/opencode-desktop.nix (импорт в home/secondary.nix): opencode 2.0.32 из nixpkgs-master, плагин oh-my-opencode-slim@3.0.5, конфиг slim/permissions/дефолт модели — как на vetymae (эталон), webpage-MCP выключен, плюс MCP browser-control (@opencode-ai/browser-control@0.8.4); opencode serve как systemd user service на 0.0.0.0:4096 с --cors https://rydiwo.opencodes.zeroq.su и паролем из sops-окружения; обёртки oc и browser-control; Chromium в home.packages. - nginx (sapphira): vhost rydiwo.opencodes.zeroq.su -> 100.92.238.19:4096 (tailscale; LAN 192.168.1.102 — DHCP-lease, уже уезжал на LAMET). - computer-use и genoffice MCP не перенесены (Windows-only) — ADR-0009. - ADR-0009, задача T60, AGENTS.md (инвариант 17 + две ловушки).
70 lines
1.9 KiB
Nix
70 lines
1.9 KiB
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
xlib,
|
|
...
|
|
}:
|
|
let
|
|
symlinksPaths = {
|
|
# cfg
|
|
"${xlib.dirs.user-storage}/ludusavi" = ".config/ludusavi";
|
|
"${xlib.dirs.user-storage}/v2rayN" = ".local/share/v2rayN";
|
|
"/etc/nixos" = "Configuration";
|
|
|
|
"${config.home.homeDirectory}/Games/PrismLaunchers/${config.home.username}" =
|
|
".local/share/PrismLauncher";
|
|
"${xlib.dirs.lamet-drive}/Users/${xlib.device.username}/Music" = "Music";
|
|
};
|
|
mkLinks = lib.mapAttrs' (sourcePath: targetPath: {
|
|
name = targetPath;
|
|
value.source = config.lib.file.mkOutOfStoreSymlink "${sourcePath}";
|
|
}) symlinksPaths;
|
|
in
|
|
{
|
|
imports = [
|
|
./minimal.nix
|
|
./modules/dconf.nix
|
|
./modules/packages.nix
|
|
./modules/plasma-manager.nix
|
|
./modules/herdr.nix
|
|
./modules/herdr-runtime.nix
|
|
# opencode v2 + oh-my-opencode-slim (desktop-адаптация, зеркало vetymae).
|
|
# vhost: https://rydiwo.opencodes.zeroq.su (nginx на sapphira).
|
|
./modules/opencode-desktop.nix
|
|
# ./modules/noctalia.nix
|
|
];
|
|
xdg = {
|
|
enable = true;
|
|
autostart.enable = true;
|
|
userDirs = {
|
|
enable = true;
|
|
createDirectories = true;
|
|
desktop = "${config.xdg.dataHome}/desktop";
|
|
documents = null;
|
|
download = "${config.home.homeDirectory}/Downloads";
|
|
music = "${config.home.homeDirectory}/Music";
|
|
pictures = "${config.home.homeDirectory}/Pictures";
|
|
publicShare = "${config.home.homeDirectory}/Misc/Public";
|
|
templates = null;
|
|
videos = "${config.home.homeDirectory}/Pictures/Videos";
|
|
};
|
|
};
|
|
home = {
|
|
file = mkLinks;
|
|
pointerCursor = {
|
|
enable = true;
|
|
x11.enable = true;
|
|
gtk.enable = true;
|
|
size = 24;
|
|
name = "Qogir";
|
|
package = pkgs.qogir-icon-theme;
|
|
};
|
|
};
|
|
home.activation = {
|
|
yaziSync = ''
|
|
${pkgs.rsync}/bin/rsync -Lrv "${config.home.homeDirectory}/.config/yazi/" "${xlib.dirs.user-storage}/yazi/"
|
|
'';
|
|
};
|
|
}
|