Compare commits
4
Commits
f0a6c3552e
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2f686df2cc | ||
|
|
8a1b952ce6 | ||
|
|
709bc50164 | ||
|
|
cd1915336b |
Generated
+37
-60
@@ -133,11 +133,11 @@
|
||||
"nixpkgs-lib": "nixpkgs-lib_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1787559586,
|
||||
"narHash": "sha256-onL0VLf9vPllmT0H/OlURIU5r5t5WIEl7t4tVNKT0Nw=",
|
||||
"lastModified": 1793576659,
|
||||
"narHash": "sha256-V1h85lUaJBQoHFrB2vpXZOE0Ju1MYSnIpsehoVZYlDo=",
|
||||
"owner": "hercules-ci",
|
||||
"repo": "flake-parts",
|
||||
"rev": "9d0d87172c374f89da73c1cfe6d81ae62feac1f1",
|
||||
"rev": "ea2630b7470978622c7689a1ff75d2b389175399",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -181,11 +181,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1787424939,
|
||||
"narHash": "sha256-O2tBn84NNuHrnqNVxx/XqsXwfYvS1YwBh+7CBnbCYsk=",
|
||||
"lastModified": 1793686154,
|
||||
"narHash": "sha256-Zb/0L3soxrkfcrywpfp0J++0WFLB3tzh0Xtx9up+VNc=",
|
||||
"owner": "cachix",
|
||||
"repo": "git-hooks.nix",
|
||||
"rev": "809414f0cdadf82cf11b06c2b29ba9b3168b3297",
|
||||
"rev": "204b6977e00caac19e2313015a598543ca7be150",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -255,44 +255,25 @@
|
||||
"url": "https://git.mgaction.town/darman/hypr-chrome.git"
|
||||
}
|
||||
},
|
||||
"hyprchrome-claude": {
|
||||
"hyprchrome": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793643205,
|
||||
"narHash": "sha256-7DrwTLdHDy6Azhr1ExyHmhNvJ9ydkkNQhAEQokXDGp8=",
|
||||
"lastModified": 1794684228,
|
||||
"narHash": "sha256-Tn9JdMOSHfnhdmnTc9brl1dQPB/qkYkjH8ka2J3E8FU=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "af01c833d5dc7604b527ee544e63d3952dcc5262",
|
||||
"revCount": 19,
|
||||
"rev": "61959090074cbc3bfb7bdf22d861ab82e2dce397",
|
||||
"revCount": 2,
|
||||
"submodules": true,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.mgaction.town:2222/darman/hyprchrome-claude.git"
|
||||
"url": "ssh://gitea@git.mgaction.town:2222/darman/hyprchrome.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.mgaction.town:2222/darman/hyprchrome-claude.git"
|
||||
}
|
||||
},
|
||||
"hyprchrome-files": {
|
||||
"inputs": {
|
||||
"nixpkgs": [
|
||||
"nixpkgs"
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1794679440,
|
||||
"narHash": "sha256-FgqPo/hhETwCdtAmve4PuZ232F7sKfDpAS0vmWZq9dw=",
|
||||
"ref": "refs/heads/master",
|
||||
"rev": "9d9856349edcc67e07d4daa24bbb4265dcc685a7",
|
||||
"revCount": 12,
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.mgaction.town:2222/darman/hyprchrome-files.git"
|
||||
},
|
||||
"original": {
|
||||
"type": "git",
|
||||
"url": "ssh://gitea@git.mgaction.town:2222/darman/hyprchrome-files.git"
|
||||
"url": "ssh://gitea@git.mgaction.town:2222/darman/hyprchrome.git"
|
||||
}
|
||||
},
|
||||
"livesync-bridge": {
|
||||
@@ -419,11 +400,11 @@
|
||||
"treefmt-nix": "treefmt-nix"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1793560706,
|
||||
"narHash": "sha256-rdq2yGEPkX4pOZJ+7MvUgZuA9OzwEimx01JjoOX+GQ8=",
|
||||
"lastModified": 1794766393,
|
||||
"narHash": "sha256-qtNL+kX2ru2k6kwmPhqG/mWjo83orqSi6wEXMxMmErI=",
|
||||
"owner": "LovingMelody",
|
||||
"repo": "nix-citizen",
|
||||
"rev": "f9a3b08ea31c586ffee0e604af9dc7ffc22e9723",
|
||||
"rev": "6b732ddacf308fa5820ca00133d4d72336bf3442",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -461,11 +442,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1788236945,
|
||||
"narHash": "sha256-MmEtOeX/RQlnan/jIgjFhm1j7KUKv8p5o7zRsXEEq3g=",
|
||||
"lastModified": 1794375173,
|
||||
"narHash": "sha256-x97M5XOV+IDcm7K9Bv6a7OUePyEVCjPeLpr3iD3BJD8=",
|
||||
"owner": "fufexan",
|
||||
"repo": "nix-gaming",
|
||||
"rev": "f4434220501c23e7154bca5262e5b2fd7efa4490",
|
||||
"rev": "3d460ece2fde6ba86a7f9deacc9a65e40f9ed19e",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -613,11 +594,11 @@
|
||||
},
|
||||
"nixpkgs-lib_2": {
|
||||
"locked": {
|
||||
"lastModified": 1785031560,
|
||||
"narHash": "sha256-OmshNvn2vupOFpYinLUu+1Dnpu4n7Q5N3ggGVNHpkUI=",
|
||||
"lastModified": 1793504054,
|
||||
"narHash": "sha256-ThkfL3D/FhCiZFc9+3BtxwuMmpuK+/bGtXCSo1+yVew=",
|
||||
"owner": "nix-community",
|
||||
"repo": "nixpkgs.lib",
|
||||
"rev": "0e79af5e3d4dcfcd676ab5ba3f95d2e3352e078c",
|
||||
"rev": "7851ba61fd862b277cb6a9cef37394bc18bb94e4",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -628,11 +609,11 @@
|
||||
},
|
||||
"nixpkgs-unstable": {
|
||||
"locked": {
|
||||
"lastModified": 1794495034,
|
||||
"narHash": "sha256-E0hYoioqUtM2XmPPvYYpJgdADF5AW9oOoPSEiM9dTHQ=",
|
||||
"lastModified": 1794644783,
|
||||
"narHash": "sha256-3GnIGIy15bMduoS9RnWqKTmsJLWThla42UFtm0S7+us=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "2074cc672349f14240fb7ea90d509e0b643e9dd4",
|
||||
"rev": "5d2b81a7a3be3e2f832879028e4d60abbf58e9a0",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -644,18 +625,15 @@
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1788316716,
|
||||
"narHash": "sha256-bc7rSpXIdn9QWGNqfWcPZWOhEVF8NoeAZkWq0XWnf/k=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "3ed67ec0a4d3c7ab4ae1f04f8ee8df07bfa506a2",
|
||||
"type": "github"
|
||||
"lastModified": 1794386569,
|
||||
"narHash": "sha256-W60urNAgQVS8bhNWH0bQsYoiagds8m38oTDUjEOM9FE=",
|
||||
"rev": "d4f25a3e562008648d45bcf2d70bcc7422cad84e",
|
||||
"type": "tarball",
|
||||
"url": "https://releases.nixos.org/nixos/unstable/nixos-26.11pre1117658.d4f25a3e5620/nixexprs.tar.zst?lastModified=1794386569&rev=d4f25a3e562008648d45bcf2d70bcc7422cad84e"
|
||||
},
|
||||
"original": {
|
||||
"owner": "NixOS",
|
||||
"ref": "nixos-unstable",
|
||||
"repo": "nixpkgs",
|
||||
"type": "github"
|
||||
"type": "tarball",
|
||||
"url": "https://channels.nixos.org/nixos-unstable/nixexprs.tar.zst"
|
||||
}
|
||||
},
|
||||
"nixpkgs_3": {
|
||||
@@ -781,8 +759,7 @@
|
||||
"home-manager": "home-manager",
|
||||
"honcho-console": "honcho-console",
|
||||
"hypr-chrome": "hypr-chrome",
|
||||
"hyprchrome-claude": "hyprchrome-claude",
|
||||
"hyprchrome-files": "hyprchrome-files",
|
||||
"hyprchrome": "hyprchrome",
|
||||
"livesync-bridge": "livesync-bridge",
|
||||
"mediamanager-nix": "mediamanager-nix",
|
||||
"millennium": "millennium",
|
||||
@@ -877,11 +854,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1786901030,
|
||||
"narHash": "sha256-WSFCsDSE5ffgD2MqzkM2CYjeFiKhRF/dJUN8uedb6YE=",
|
||||
"lastModified": 1791885023,
|
||||
"narHash": "sha256-C3alQ2MEt0zVrUSho5NUDo3jmhbff72++bfwoqT9Omo=",
|
||||
"owner": "numtide",
|
||||
"repo": "treefmt-nix",
|
||||
"rev": "27b3b12a8e6375f28ebe122f07d230ca5459bbfa",
|
||||
"rev": "0d6d739a833ba9a9c93034862e4a7b061a062a1c",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -73,18 +73,14 @@
|
||||
url = "git+file:///mnt/hdd_01/dev/repos/openbeach";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# hyprchrome-claude: the HyprChrome desktop app around the claude CLI
|
||||
# (terra). Own repo on our gitea: push there, then
|
||||
# `nix flake update hyprchrome-claude` here.
|
||||
hyprchrome-claude = {
|
||||
url = "git+ssh://gitea@git.mgaction.town:2222/darman/hyprchrome-claude.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# hyprchrome-files: keyboard-first HyprChrome file manager (terra's
|
||||
# default). Own repo on our gitea: push there, then
|
||||
# `nix flake update hyprchrome-files` here.
|
||||
hyprchrome-files = {
|
||||
url = "git+ssh://gitea@git.mgaction.town:2222/darman/hyprchrome-files.git";
|
||||
# hyprchrome: harness for the HyprChrome apps on our gitea. Carries
|
||||
# hyprchrome-files (terra's default file manager), hyprchrome-claude
|
||||
# (desktop app around the claude CLI) and hyprchrome-widgets as
|
||||
# submodules, plus their shared libcosmic/winit patches, and builds the
|
||||
# packages. Push the app and the harness there, then
|
||||
# `nix flake update hyprchrome` here.
|
||||
hyprchrome = {
|
||||
url = "git+ssh://gitea@git.mgaction.town:2222/darman/hyprchrome.git";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
# NexusMods.App (terra): source of nixpkgs' package overridden with the
|
||||
|
||||
@@ -61,6 +61,20 @@ in
|
||||
};
|
||||
};
|
||||
|
||||
# At home, ssh to gitea goes straight to jupiter instead of out to neptun and
|
||||
# back over the tailnet; away, the probe fails and the public route applies.
|
||||
# The alias matches the existing known_hosts entry (same gitea host key).
|
||||
# LFS rides the same connection via LFS_ALLOW_PURE_SSH (services/dev/gitea.nix).
|
||||
programs.ssh = {
|
||||
enable = true;
|
||||
enableDefaultConfig = false;
|
||||
matchBlocks.gitea-lan = {
|
||||
match = ''host git.mgaction.town exec "${pkgs.netcat}/bin/nc -z -w1 10.0.0.20 2222"'';
|
||||
hostname = "10.0.0.20";
|
||||
extraOptions.HostKeyAlias = "[git.mgaction.town]:2222";
|
||||
};
|
||||
};
|
||||
|
||||
# direnv + nix-direnv: lets per-repo devShells (e.g. /mnt/hdd_01/dev/repos/Tome's
|
||||
# flake.nix) auto-load in the shell AND in Rider via its "direnv
|
||||
# integration" plugin, instead of every dev repo needing its own
|
||||
|
||||
@@ -11,6 +11,7 @@
|
||||
./hermes-agent.nix
|
||||
./honcho.nix # luna's memory server (Postgres + Ollama embeddings)
|
||||
./honcho-console.nix # web console for it, tailnet-only on :8095
|
||||
./honcho-gate.nix # bearer-gated tailnet door to it for Claude Code, :8099
|
||||
./livesync-bridge.nix
|
||||
./luna-sites.nix # luna's LAN web apps: http://mars.sol/<name>/
|
||||
./pass-broker-gateway.nix # Telegram approvals for every host's pass-broker, tailnet :8097
|
||||
|
||||
@@ -0,0 +1,45 @@
|
||||
{ config, ... }:
|
||||
|
||||
# Tailnet door to luna's Honcho (honcho.nix) for Claude Code on terra
|
||||
# (hosts/terra/claude-honcho.nix). Honcho itself stays on loopback with auth
|
||||
# off, so Hermes and honcho-console need no key; this bearer token is the only
|
||||
# credential, and it reaches luna's workspace only. 8099 stays closed in the
|
||||
# firewall: tailscale0 only, like honcho-console.
|
||||
let
|
||||
port = 8099;
|
||||
in
|
||||
{
|
||||
imports = [ ../../services/network/caddy.nix ];
|
||||
|
||||
# Fails closed: an unset token must not turn "Bearer " into the password.
|
||||
services.caddy.virtualHosts.":${toString port}".extraConfig = ''
|
||||
@allowed {
|
||||
expression `{env.HONCHO_GATE_TOKEN} != "" && {http.request.header.Authorization} == "Bearer " + {env.HONCHO_GATE_TOKEN}`
|
||||
path /v3/workspaces /v3/workspaces/luna/*
|
||||
not path /v3/workspaces/luna/webhooks*
|
||||
}
|
||||
# Workspace get-or-create only; listing, keys and other workspaces stay out.
|
||||
@workspaceCreate {
|
||||
path /v3/workspaces
|
||||
not method POST
|
||||
}
|
||||
handle @workspaceCreate {
|
||||
respond 403
|
||||
}
|
||||
handle @allowed {
|
||||
reverse_proxy 127.0.0.1:8000
|
||||
}
|
||||
handle {
|
||||
respond 403
|
||||
}
|
||||
'';
|
||||
|
||||
services.caddy.environmentFile = config.sops.templates."honcho-gate.env".path;
|
||||
|
||||
# Same value in secrets/terra.yaml, where the Claude Code plugin sends it.
|
||||
sops.secrets.honcho_gate_token.restartUnits = [ "caddy.service" ];
|
||||
sops.templates."honcho-gate.env" = {
|
||||
content = "HONCHO_GATE_TOKEN=${config.sops.placeholder.honcho_gate_token}\n";
|
||||
restartUnits = [ "caddy.service" ];
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,76 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
# Claude Code's long-term memory in luna's Honcho, through mars' gate
|
||||
# (hosts/mars/honcho-gate.nix). The plugin itself (plastic-labs/claude-honcho)
|
||||
# is installed by hand with /plugin; this wires its config and adds luna as an
|
||||
# observer of every Claude session, which the plugin never does: without it
|
||||
# the deriver writes only darman's self-view, and Hermes (directional) reads
|
||||
# luna's view of darman, so luna would learn nothing from these sessions.
|
||||
let
|
||||
baseUrl = "http://mars.orbit.sol:8099";
|
||||
workspace = "luna";
|
||||
tokenFile = config.sops.secrets.honcho_gate_token.path;
|
||||
|
||||
# Get-or-create, so it doesn't race the plugin's own SessionStart; the
|
||||
# plugin's later get-or-create still adds its repo/host scopes.
|
||||
lunaObserver = pkgs.writeShellApplication {
|
||||
name = "honcho-luna-observer";
|
||||
runtimeInputs = [ pkgs.curl pkgs.jq pkgs.coreutils ];
|
||||
text = ''
|
||||
log="$HOME/.honcho/luna-observer.log"
|
||||
sid=$(jq -r '.session_id // empty')
|
||||
[ -n "$sid" ] || exit 0
|
||||
# Same mapping as the plugin's getSessionName.
|
||||
name=$(printf %s "$sid" | tr '[:upper:]' '[:lower:]' | tr -c 'a-z0-9_-' '-')
|
||||
# Header via stdin: argv is world-readable in /proc.
|
||||
if ! printf 'header = "Authorization: Bearer %s"\n' "$(cat ${tokenFile})" |
|
||||
curl -fsS --max-time 8 -K - -X POST \
|
||||
-H 'Content-Type: application/json' \
|
||||
-d '{"luna":{"observe_me":false,"observe_others":true}}' \
|
||||
"${baseUrl}/v3/workspaces/${workspace}/sessions/$name/peers" >/dev/null 2>>"$log"; then
|
||||
echo "$(date -Is) $name: adding luna failed" >>"$log"
|
||||
fi
|
||||
exit 0
|
||||
'';
|
||||
};
|
||||
in
|
||||
{
|
||||
# Same value in secrets/mars.yaml (the gate).
|
||||
sops.secrets.honcho_gate_token.owner = "darman";
|
||||
|
||||
home-manager.users.darman = { lib, ... }: {
|
||||
# Both files are also written by Claude Code and the plugin, so only these
|
||||
# keys are asserted; everything else in them stays.
|
||||
home.activation.claudeHoncho = lib.hm.dag.entryAfter [ "writeBoundary" ] ''
|
||||
merge() { # file, jq filter, args…
|
||||
f=$1; shift
|
||||
[ -s "$f" ] || echo '{}' > "$f"
|
||||
${pkgs.jq}/bin/jq "$@" "$f" > "$f.new"
|
||||
chmod 600 "$f.new"
|
||||
mv -f "$f.new" "$f"
|
||||
}
|
||||
(
|
||||
umask 077
|
||||
mkdir -p "$HOME/.honcho" "$HOME/.claude"
|
||||
# A missing secret must not fail the whole switch. The block needs its
|
||||
# own schemaVersion: without it the plugin "migrates" it and drops
|
||||
# baseUrl, falling back to Plastic Labs' cloud with our token.
|
||||
[ -r ${tokenFile} ] && merge "$HOME/.honcho/config.json" \
|
||||
--rawfile key ${tokenFile} \
|
||||
'.schemaVersion = 2
|
||||
| .hosts.claude_code = ((.hosts.claude_code // {}) + {
|
||||
schemaVersion: 2, baseUrl: "${baseUrl}", apiKey: ($key | rtrimstr("\n")),
|
||||
workspace: "${workspace}", peerName: "darman", aiPeer: "claude" })'
|
||||
# Env beats the file, so no plugin rewrite of it can reroute to the cloud.
|
||||
merge "$HOME/.claude/settings.json" \
|
||||
--arg cmd ${lunaObserver}/bin/honcho-luna-observer \
|
||||
'.env = ((.env // {}) + {
|
||||
HONCHO_BASE_URL: "${baseUrl}", HONCHO_WORKSPACE: "${workspace}",
|
||||
HONCHO_PEER_NAME: "darman", HONCHO_AI_PEER: "claude" })
|
||||
| .hooks.SessionStart = ([(.hooks.SessionStart // [])[]
|
||||
| select([.hooks[]?.command] | any(contains("honcho-luna-observer")) | not)]
|
||||
+ [{ hooks: [{ type: "command", command: $cmd, timeout: 10 }] }])'
|
||||
)
|
||||
'';
|
||||
};
|
||||
}
|
||||
@@ -12,6 +12,7 @@ in
|
||||
./hardware-configuration.nix
|
||||
./disk-config.nix
|
||||
./secrets.nix
|
||||
./claude-honcho.nix # Claude Code memory in luna's Honcho (mars :8099)
|
||||
../../common.nix
|
||||
../../profiles/workstation.nix
|
||||
../../services/desktop/luna-voice.nix
|
||||
@@ -34,16 +35,16 @@ in
|
||||
};
|
||||
|
||||
# hyprchrome-claude (dev): HyprChrome desktop app around the claude CLI,
|
||||
# built from its gitea repo (see the flake input). Needs `claude` on
|
||||
# built from the hyprchrome harness (see the flake input). Needs `claude` on
|
||||
# PATH, which home/desktop already provides.
|
||||
environment.systemPackages = [
|
||||
inputs.hyprchrome-claude.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
inputs.hyprchrome.packages.${pkgs.stdenv.hostPlatform.system}.hyprchrome-claude
|
||||
pkgs.teamspeak6-client # successor of the TeamSpeak 5 beta
|
||||
unstable.heroic # Epic/GOG/Amazon launcher; 2.22.4 fixes GOG login, 26.05 has 2.22.1
|
||||
];
|
||||
|
||||
# hyprchrome-files (dev): the default file manager and file picker, built
|
||||
# from its gitea repo (see the flake input). Its home-manager module
|
||||
# from the hyprchrome harness (see the flake input). Its home-manager module
|
||||
# installs it with its fonts. Both defaults are set system-wide instead of
|
||||
# through the module: its defaultFileManager would make home-manager own
|
||||
# ~/.config/mimeapps.list, where apps register handlers, and its filePicker
|
||||
@@ -52,12 +53,12 @@ in
|
||||
# extraPortals also puts its D-Bus activation files (portal backend,
|
||||
# FileManager1 "show in folder") on the session bus.
|
||||
home-manager.users.darman = {
|
||||
imports = [ inputs.hyprchrome-files.homeManagerModules.default ];
|
||||
imports = [ inputs.hyprchrome.homeManagerModules.hyprchrome-files ];
|
||||
programs.hyprchrome-files.enable = true;
|
||||
};
|
||||
xdg.mime.defaultApplications."inode/directory" = "town.mgaction.HyprchromeFiles.desktop";
|
||||
xdg.portal.extraPortals = [
|
||||
inputs.hyprchrome-files.packages.${pkgs.stdenv.hostPlatform.system}.default
|
||||
inputs.hyprchrome.packages.${pkgs.stdenv.hostPlatform.system}.hyprchrome-files
|
||||
];
|
||||
xdg.portal.config.common."org.freedesktop.impl.portal.FileChooser" = [ "hyprchromefiles" ];
|
||||
|
||||
|
||||
+3
-2
@@ -15,6 +15,7 @@ pass_broker_pat: ENC[AES256_GCM,data:9fg2TG4RvmcAbd4xI1lPIRURVTNUrakTYsjfssa/v7s
|
||||
pass_broker_telegram_token: ENC[AES256_GCM,data:l50+HIyGDQ5V9S9sD/r0z5lP2krPRV1BhrWHSAK5kQoFceQLV9GRkx5JMICTww==,iv:zuL7nXGFjYmZFVqo1rjkSNFQqE1JOlybNmCBr1rirc0=,tag:ogpFMy8txSyuGfys86k9QA==,type:str]
|
||||
darman_telegram_user_id: ENC[AES256_GCM,data:jdi/eFS8ZoQ=,iv:1aFs4vJjdXA2eXKxLJymcRUQtBRFyMVBNXGaTrcToo8=,tag:zpAqSpYdgs02J3WOzJwwNg==,type:str]
|
||||
matrix_access_token: ENC[AES256_GCM,data:P/vKj7WNzZVusTlyeoUknZ5WcbCbhJJV92iSEnmUwAvxntb+AUVXFis=,iv:Pk6cZSqSG7LZ5Hs/Iir9do7SuP+cahnnZsNM9iwxi+g=,tag:6tN7Y/OrHsFUNQ5LlsLqew==,type:str]
|
||||
honcho_gate_token: ENC[AES256_GCM,data:nyTUDJr2+MK75QBMInMbOkRAWO1tL7MTwgC3bFLQXLbOZcmmQy30y9Vd8DyMsS6g/+0t0B9z8gvTGwufkAAELA==,iv:cQANdsBMRW6FJpqHPIRXi3Djpn3/KmoRQyVS2MQGoyM=,tag:HZ3G+saeTpmvNVGee31BZA==,type:str]
|
||||
sops:
|
||||
age:
|
||||
- enc: |
|
||||
@@ -35,7 +36,7 @@ sops:
|
||||
oyJ7PS3lW+PxH5AZkeeU7gXO/pz2oDku0aDOds7kaD3n0+qSWicQ+Q==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age1eapjg6tdrr0fuvmgs3q3nlvnjkaxez298qynqqqxt0lpcv0lrsyq7ayxjk
|
||||
lastmodified: "2026-10-21T12:19:12Z"
|
||||
mac: ENC[AES256_GCM,data:+JJLcpHWlQqZAfXGfSzBTxVCV2/+ADqR5v7HtwWkNPbIL5wSH5Hn40rvhuhFfhZq7rBaQQI0orri/9xbWpS3o5qC3Cfw5BYNedbs+HoG/gRO6TdY8iEwNhmioIFr13SMfJh4mji9/cA9jdliPSpeXXasmMghAT3djIjvhAZNeFg=,iv:oDszif8PrMz0bbR4Cg0Em/9pQN6zl/YGxWINVoIutg4=,tag:O7vmpT06EtQszVy9kWfeIw==,type:str]
|
||||
lastmodified: "2026-11-16T04:50:04Z"
|
||||
mac: ENC[AES256_GCM,data:a/eVtueQofcPV1Eb58+gGGuEtmUzeHtHY4HDCEIEWv0q3vaG0+jC5kCU8W73yMeCpnDAVQBetXNI+Pt18LUz8oXL5WI4B065yEMTDZ64X/lMOn7jmuFrZRb0ji5GvGqe9IOMcK2VQBbzRx2y6Hb5cf3Tzb7Q5ErAWxhKqiSyGgM=,iv:FZ3z5Ga0LGf5GvUuIE84hHRXrs9KV1/7O+wVVJor7jE=,tag:8H+iUI1eBD3IYzoJiHg08w==,type:str]
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.13.3
|
||||
|
||||
+3
-2
@@ -6,6 +6,7 @@ elevenlabs_api_key: ENC[AES256_GCM,data:4IBKKMxor1sJ1skh1pgLrQnNX31cgQFiy89O1TZn
|
||||
pass_broker_pat: ENC[AES256_GCM,data:A4NrFBQIL6waKSaVB4EZnxLp4RWkm1hGZcHGBd5qSh+BPv7gvj+g9vjFhkCwXgAinBekxo0GOhf/Ip4zK+KWZwNTzF8MXjAkSARnFQgXiFAncaEVzXGho1TVYvYAN1PRQxEu79bYS0IG5+ZOw0VVpjw=,iv:vLiojJJrl6yC83stsNoXLZX762z8nM0Jx164lx7XVjs=,tag:K8zFZ5bb8QeADmsLf0o6pw==,type:str]
|
||||
pass_broker_gateway_token: ENC[AES256_GCM,data:OSM2iCIi+GymGzIS3T2vN06H0q8GvSuQ2RWkatSfIyIrQpVKaeU/GUEkD6S4okedKBtXXYN9cnc2Ro3H7d+S0g==,iv:9hgYqlTonbDlAu8WpjUUTqhqbpfAxb1ZAuQUUac2QC4=,tag:skIctluEWh4hMnmR4Y7g6w==,type:str]
|
||||
protonvpn_wg_private_key: ENC[AES256_GCM,data:aTfP7xyStfy/kmLuJA8L32J8uJ5Y0eA5c8XySiiozFLau+PxU7t8sSremQ8=,iv:pbkMKmPhRmTat5swTsjf29ZOEHSTjWvUXMsdbFgF3PY=,tag:OAyEkFthYwv6lkr6M/EWkA==,type:str]
|
||||
honcho_gate_token: ENC[AES256_GCM,data:rHPBC+UujQFiPAFfvNd9Zf9CmkmR1IgkuelKgfEFwPxHEWRZiiiCgUrPiFZbY/teqJ6F3j4RhFpgVNKRv8UX4g==,iv:rTI7shOVdJ0VrGzlhK5w1dnR6Q0ZcGMLOhT2ZFqb20E=,tag:UViCmLukzNFDQ5QHPp9W5Q==,type:str]
|
||||
sops:
|
||||
age:
|
||||
- enc: |
|
||||
@@ -26,7 +27,7 @@ sops:
|
||||
sHjKfw8VrrmAR4pQf1dsY+wcyh4FsZxhP3Q+QIVq3eCIXS9PeJkGAg==
|
||||
-----END AGE ENCRYPTED FILE-----
|
||||
recipient: age1rfcmu6zh40v4260l9hnf8ajs9vly0s06rx3ey76eu78dp9t7getqyhmkut
|
||||
lastmodified: "2026-10-21T08:28:58Z"
|
||||
mac: ENC[AES256_GCM,data:8p2f7x4YqO7C1p7fDmiAaiQdSdAsqL8nYUshYC1e6pj7YyZnh2mUZU2e1ZcGQbs+t0OvssRD9dyY0Np1D9GTjVfiPDYp1PIZGwoZCeH7knc2d66dUYWn92P73pOPajgYzaQqzBUMCXntt9y6eeflHcn5XjV75baRAbInuU/Y7Bc=,iv:8MfH8rQqgFl2acS0Fjs+XjNwNJHv+Kuc8uUQRbwiiF8=,tag:HcccDy0k0jTiMgmUV4M6iw==,type:str]
|
||||
lastmodified: "2026-11-16T04:50:04Z"
|
||||
mac: ENC[AES256_GCM,data:nfT0BFIO+LcJP+GHYYeUjLsoTJIwNgtk17HTGxtswyasz2zGEKfKvTfuPkkVt4iHwzF1xYxWZXWpreACnB7pBQfFYJROkHF3YzfS/0VmpcLMyPMU1NwQKVnpMtO80fPstpV+Att1kY5Fj3VBgIOTrbI/9+/AtYVinU9ntppKgrQ=,iv:hs3REfnm67brJ4vvWYOf2BgVAuZOruaTEDCH2rBojOQ=,tag:RfsoTwBhPjKR1ddTIrq0vg==,type:str]
|
||||
unencrypted_suffix: _unencrypted
|
||||
version: 3.13.3
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
{ pkgs, ... }:
|
||||
{ pkgs, lib, inputs, ... }:
|
||||
|
||||
# Unreal Engine: Epic's prebuilt Linux zip in an FHS env. The zip is behind an
|
||||
# Epic login, so it's unpacked by hand to engineDir rather than fetched by Nix.
|
||||
@@ -83,6 +83,14 @@ let
|
||||
editor = fhs "unreal-editor" "${engineDir}/Engine/Binaries/Linux/UnrealEditor";
|
||||
shell = fhs "unreal-shell" "bash"; # RunUAT, project builds, debugging
|
||||
|
||||
# nixpkgs 26.05 has Blender 5.1; the game-dev harness (projects/.harness) wants
|
||||
# the newest one. pkgsRocm, as in desktop-apps: Cycles needs HIP on the RX 6800 XT.
|
||||
# hiPrio wins the bin/blender collision with desktop-apps.nix's pkgsRocm.blender.
|
||||
unstable = import inputs.nixpkgs-unstable {
|
||||
inherit (pkgs.stdenv.hostPlatform) system;
|
||||
config = pkgs.config;
|
||||
};
|
||||
|
||||
desktopItem = pkgs.makeDesktopItem {
|
||||
name = "unreal-editor";
|
||||
desktopName = "Unreal Editor";
|
||||
@@ -92,7 +100,21 @@ let
|
||||
};
|
||||
in
|
||||
{
|
||||
environment.systemPackages = [ editor shell desktopItem ];
|
||||
environment.systemPackages = [
|
||||
editor
|
||||
shell
|
||||
desktopItem
|
||||
pkgs.python3 # the harness tools (ue, blender, asset_pipe, ...) are Python
|
||||
(lib.hiPrio unstable.pkgsRocm.blender)
|
||||
pkgs.git-lfs # the project repos (LANfall, ...) keep their assets in LFS
|
||||
];
|
||||
|
||||
# The game-dev harness's commands (ue, blender, asset_pipe, tripo_studio, ...). First on PATH: its `blender`
|
||||
# wraps the real one (and finds it further down PATH). The harness's own setup is .harness/setup.sh.
|
||||
environment.extraInit = ''
|
||||
export PATH="/mnt/ssd_01/unreal/projects/.harness/bin:$PATH"
|
||||
'';
|
||||
environment.sessionVariables.TRIPO_ANALYTICS_ENABLED = "0"; # Tripo CLI telemetry off
|
||||
|
||||
systemd.tmpfiles.rules = [ "d /mnt/ssd_01/unreal 0755 darman users -" ];
|
||||
}
|
||||
|
||||
@@ -61,6 +61,9 @@ in
|
||||
START_SSH_SERVER = true;
|
||||
SSH_PORT = 2222;
|
||||
SSH_LISTEN_PORT = 2222;
|
||||
# LFS objects over the ssh connection itself; otherwise git-lfs fetches
|
||||
# them from ROOT_URL, i.e. through neptun, even on an ssh remote.
|
||||
LFS_ALLOW_PURE_SSH = true;
|
||||
};
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
|
||||
Reference in New Issue
Block a user