diff --git a/flake.lock b/flake.lock index 0fa2121..af65267 100644 --- a/flake.lock +++ b/flake.lock @@ -227,8 +227,8 @@ "nixpkgs": "nixpkgs_3" }, "locked": { - "lastModified": 1767487700, - "narHash": "sha256-9O6d9BUMMt7oG7q+NUuGnZhOFV/QcBIfVKgr1FW/1t4=", + "lastModified": 1767671770, + "narHash": "sha256-CN2ACRvBlQ1SxQshEv4EJWTaiwRXo+m4dSYQQOaZzdc=", "path": "/home/m3tam3re/p/NIX/nixpkgs", "type": "path" }, diff --git a/flake.nix b/flake.nix index 02ddacf..f10af80 100644 --- a/flake.nix +++ b/flake.nix @@ -22,8 +22,8 @@ nixpkgs-9e58ed7.url = "github:nixos/nixpkgs/9e58ed7ba759d81c98f033b7f5eba21ca68f53b0"; nixpkgs-master.url = "github:nixos/nixpkgs/master"; - m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs"; - # m3ta-nixpkgs.url = "path:/home/m3tam3re/p/NIX/nixpkgs"; + # m3ta-nixpkgs.url = "git+https://code.m3ta.dev/m3tam3re/nixpkgs"; + m3ta-nixpkgs.url = "path:/home/m3tam3re/p/NIX/nixpkgs"; # nur = { url = "github:nix-community/NUR"; diff --git a/home/features/coding/default.nix b/home/features/coding/default.nix index f54f800..3de9a53 100644 --- a/home/features/coding/default.nix +++ b/home/features/coding/default.nix @@ -16,6 +16,7 @@ (python3.withPackages (ps: with ps; [ pip + uv # Scientific packages numba numpy diff --git a/home/features/coding/opencode.nix b/home/features/coding/opencode.nix index c9daff7..11cd2ee 100644 --- a/home/features/coding/opencode.nix +++ b/home/features/coding/opencode.nix @@ -4,6 +4,12 @@ settings = { theme = "opencode"; plugin = ["oh-my-opencode"]; + formatter = { + alejandra = { + command = ["alejandra" "-q" "-"]; + extensions = [".nix"]; + }; + }; mcp = { Ref = { type = "local"; @@ -14,6 +20,14 @@ ]; enabled = true; }; + Anytype = { + type = "local"; + command = [ + "sh" + "-c" + "OPENAPI_MCP_HEADERS=$(cat /run/agenix/anytype-key) exec bunx @anyproto/anytype-mcp" + ]; + }; }; }; }; diff --git a/home/features/desktop/rofi.nix b/home/features/desktop/rofi.nix index c6f49e7..9e2c5c1 100644 --- a/home/features/desktop/rofi.nix +++ b/home/features/desktop/rofi.nix @@ -181,11 +181,18 @@ in { }; cli.rofi-project-opener = { enable = true; - projectDirs = [ - "$HOME/p/NIX" - ]; + projectDirs = { + NIX = { + path = "~/p/NIX"; + args = ""; + }; + CHAT = { + path = "~/p/CHAT"; + args = "--agent chiron"; + }; + }; terminal = pkgs.kitty; - terminalCommand = "opencode"; + terminalCommand = "opencode %a"; }; }; } diff --git a/hosts/m3-kratos/secrets.nix b/hosts/m3-kratos/secrets.nix index c6d6224..c7dcaaa 100644 --- a/hosts/m3-kratos/secrets.nix +++ b/hosts/m3-kratos/secrets.nix @@ -1,6 +1,10 @@ { age = { secrets = { + anytype-key = { + file = ../../secrets/anytype-key.age; + owner = "m3tam3re"; + }; tailscale-key = { file = ../../secrets/tailscale-key.age; }; diff --git a/secrets.nix b/secrets.nix index d1a7dac..ae27004 100644 --- a/secrets.nix +++ b/secrets.nix @@ -18,6 +18,7 @@ let m3-kratos ]; in { + "secrets/anytype-key.age".publicKeys = systems ++ users; "secrets/baserow-env.age".publicKeys = systems ++ users; "secrets/ghost-env.age".publicKeys = systems ++ users; "secrets/littlelink-m3tam3re.age".publicKeys = systems ++ users; diff --git a/secrets/anytype-key.age b/secrets/anytype-key.age new file mode 100644 index 0000000..5295109 Binary files /dev/null and b/secrets/anytype-key.age differ