Add nono profile for OpenCode

This commit is contained in:
2026-02-02 16:07:35 +00:00
parent b6fdd922ba
commit da68435673
2 changed files with 25 additions and 10 deletions

View File

@@ -1,7 +1,8 @@
{inputs}: final: prev: let
manifest = (prev.lib.importTOML "${inputs.nono}/Cargo.toml").package;
in {
nono = prev.rustPlatform.buildRustPackage {
nono =
prev.rustPlatform.buildRustPackage {
pname = manifest.name;
version = manifest.version;

View File

@@ -2,4 +2,18 @@
home.packages = with pkgs; [
nono
];
xdg.configFile."nono/profiles/opencode.toml".text = ''
[meta]
name = "opencode"
version = "1.0.0"
description = "OpenCode AI agent"
[filesystem]
allow = ["$WORKDIR"]
read = ["$XDG_CONFIG_HOME/opencode"]
[network]
block = false
'';
}