Commit graph

588 commits

Author SHA1 Message Date
f25aab2441 feat(bot): improve prompt-building and help command handling
- Added a default system prompt and adjusted the structure to use XML for clarity.
- Improved help command handling by simplifying triggers and updating responses.
- Enhanced NixOS configuration with support for optional custom instructions.
2026-02-03 17:39:31 +01:00
9342933987 feat(bot): switch to in-memory conversation history
- Replaced Nextcloud chat history fetching with in-memory storage for conversation history.
- Added limits to history length based on an environment variable (`CONTEXT_MESSAGES`).
- Simplified prompt-building logic by removing async history fetching.
2026-02-03 17:26:46 +01:00
b35373b0ec feat(bot): replace maxTokens with contextMessages option
- Switched `maxTokens` to `contextMessages` to set chat history length instead of token limit.
- Updated environment variables, NixOS module, and prompt building logic for consistency.
- Removed in-memory conversation history, now fetching from Nextcloud for better scalability.
2026-02-03 17:00:50 +01:00
538d7623be refactor(bot): remove unused max-tokens argument handling
- Simplified the `call_claude` function by removing the unused `MAX_TOKENS` argument handling.
- Ensures cleaner and more maintainable command construction.
2026-02-03 16:30:47 +01:00
1f61a0d1ec feat(bot): refactor webhook parsing for better structure
- Updated webhook parsing to align with the latest Nextcloud Talk Bot format.
- Improved handling of actor, message, and conversation data for clarity and flexibility.
- Added robust JSON decoding with fallback for content extraction.
2026-02-03 16:29:10 +01:00
77cf4a0aed feat(bot): support random token in signature verification
- Enhanced signature verification by adding support for a `random` token included in webhook headers.
- Introduced logging to display signature variants for debugging purposes.
- Improved webhook handling to process new `X-Nextcloud-Talk-Random` header.
2026-02-03 16:26:37 +01:00
33937ab115 feat(bot): add signature verification logging
- Added info-level logging to provide details about signature verification, including secret length and partial hashes for expected and received signatures.
- Helps in debugging signature mismatches without exposing full sensitive data.
2026-02-03 16:23:14 +01:00
d5967cf392 feat(nix): improve Nextcloud Claude Bot security and user setup
- Set `User` and `Group` for the bot service to enhance security and isolation.
- Added system user and group for `claude-bot` with defined home directory.
- Modified secrets ownership to align with the new bot user.
2026-02-03 16:14:21 +01:00
b1370b5fc6 feat(bot): enhance group chat handling and mention detection
- Updated bot to only respond in group chats when explicitly mentioned.
- Added mention detection using regex for "Claude" patterns and cleaned up the message text for processing.
- Improved help message to clarify usage in direct messages and group chats.
2026-02-03 16:09:25 +01:00
8404f0998b refactor(nix): simplify Nextcloud Claude Bot packaging
- Replaced `buildPythonApplication` with `python3.withPackages` for a cleaner and more concise implementation.
- Adjusted service configuration to use the updated packaging structure, ensuring compatibility with the new setup.
- Simplifies the NixOS module by reducing redundancy and improving maintainability.
2026-02-03 15:54:01 +01:00
bc6091f63f feat(nix): add Nextcloud Claude Bot integration
- Added configuration for Nextcloud Claude Bot, including NixOS module, secrets management, and example setup files.
- Introduced a Python-based HTTP server for handling webhook events and interacting with Nextcloud Talk.
- Integrated necessary dependencies and systemd service for seamless operation.
2026-02-03 15:42:56 +01:00
eb10ad018f chore(nix): update flake.lock
- Updated flake.lock to incorporate the latest revisions for locked dependencies.
- Includes updates for `homebrew`, `sops-nix`, `nixos-hardware`, `rust-overlay`, and more.
- Ensures the system remains aligned with the most recent upstream changes.
2026-01-30 11:53:03 +01:00
0523639f2a feat(nix): add nvtop package to amd system
- Added `nvtopPackages.amd` to the package list for better GPU monitoring on AMD systems.
- Enhances system configuration by enabling real-time visualization of GPU usage.
2026-01-30 11:52:59 +01:00
4622c52d5b refactor(nix): extract common system configs into reusable modules
Create 6 new NixOS modules to reduce duplication across system configs:
- hardware/wooting: Wooting keyboard udev rules and Bluetooth compat
- services/nginx-base: Common nginx server settings
- services/acme-base: ACME certificate defaults
- services/xremap: Key remapping with sensible defaults
- system/no-sleep: Disable sleep/suspend/hibernate targets
- system/kernel-tweaks: PM freeze timeout and zram configuration

Update system configuration files to use these new modules.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 10:42:09 +01:00
ea849f2488 feat(nix): add kernel and memory tuning for amd system
Tune sysctl parameters for better I/O and memory performance:
- Lower swappiness to reduce disk swapping with zram
- Reduce vfs_cache_pressure to keep filesystem caches longer
- Adjust dirty page writeback ratios for SSD performance
- Configure zram with zstd compression

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 00:53:39 +01:00
a28cd7948c feat(nix): replace GNOME Terminal with GNOME Console
- Updated `favorite-apps` to include `org.gnome.Console.desktop` instead of `org.gnome.Terminal.desktop`.
- Aligns configuration with the newer GNOME Console application, providing a modern terminal experience.
2026-01-28 09:17:08 +01:00
008948d61e feat(nix): fix gnome-console copy-paste shortcuts
- Added a patch to enable copy and paste shortcuts in gnome-console through `default.nix`.
- Improves usability by addressing missing shortcut actions for terminal interactions.
2026-01-28 09:16:13 +01:00
c3bbcd9baa feat(nix): enable Vim clipboard integration
- Added `set clipboard=unnamedplus` to Vim configuration in `default.nix`.
- Enables seamless clipboard access between Vim and the system for improved usability.
2026-01-27 10:57:17 +01:00
bc6d70401e refactor(nix): remove freerdp from unstable overlay
- Deleted the `freerdp` package from the `unst
2026-01-26 17:48:41 +01:00
1367fdf1e4 refactor(nix): comment out gnome-remote-desktop override configuration
- Temporarily disabled `gnome-remote-desktop` override in `default.nix` by commenting out the block.
- Removes reliance on a local patch, potentially simplifying the overlay for now.
2026-01-26 17:44:21 +01:00
7f1f1572e3 chore: nix flake update 2026-01-22 11:31:28 +01:00
4060ee4b92 feat(nix): enable Docker and disable Podman compatibility
- Enabled Docker support by setting `docker.enable` to true.
- Disabled Podman's Docker compatibility mode with `podman.dockerCompat`.
- Improves virtualization configuration by prioritizing Docker usage.
2026-01-22 11:28:06 +01:00
31c70d3b26 feat(nix): add ssh-tresor package and flake input
- Included `ssh-tresor` in the package lists for Darwin and NixOS modules.
- Added `ssh-tresor` as a new flake input in `flake.nix` with its overlay.
- Integrates secure SSH key management functionality across configurations.
2026-01-21 13:19:35 +01:00
2f54f6e966 feat(nix): enable Vim with custom configuration
- Enabled Vim in `default.nix` and added custom configuration under `programs.vim`.
- Includes settings for indentation, syntax highlighting, secure mode, and automatic cursor position restoration.
- Improves default usability and aligns with user preferences for Vim.
2026-01-21 13:19:35 +01:00
fce17e443e fix(x1): update filesystem configuration
- Switched root filesystem from Btrfs to XFS for improved performance and simplicity.
- Updated the UUID and mount options accordingly.
- Removed unused Btrfs auto-scrub service as it is no longer required.
2026-01-20 10:44:29 +01:00
d7ec33e70a feat(nix): add git ignore patterns for Claude settings
- Added `**/.claude/settings.local.json` and `CLAUDE.local.md` to Git ignore configuration in `default.nix`.
- Helps exclude machine-specific and local configuration files from version control.
2026-01-20 09:22:00 +01:00
abcc070709 chore(nix): update flake.lock with latest revisions
- Updated multiple dependencies in `flake.lock` to their latest revisions, including `disko`, `flake-parts`, `homebrew-cask`, and others.
- Reflects changes in `lastModified`, `narHash`, and `rev` for updated dependencies.
- Ensures compatibility with the latest upstream updates.
2026-01-19 15:56:21 +01:00
6baf4bcfce chore(nix): update flake.lock to latest nixpkgs revision
- Updated `nixpkgs` revision in `flake.lock` to `72ac591e737060deab2b86d6952babd1f896d7c5`.
- Reflects changes in `lastModified` and `narHash` for the new revision.
2026-01-19 15:54:57 +01:00
22cc56926b refactor(nix): update system attribute usage in deploy modules
- Replaced `host.pkgs.system` with `host.pkgs.stdenv.hostPlatform.system` in `default.nix` for consistent attribute referencing.
- Aligns with recent changes in Nixpkgs attribute structure and improves compatibility.
2026-01-19 15:53:21 +01:00
241eeb7d73 refactor(nix): update system attribute references in overlays
- Replaced `prev.system` with `prev.stdenv.hostPlatform.system` for package inheritance in `flake.nix` overlays.
- Ensures compatibility with changes in the Nixpkgs attribute structure.
2026-01-19 15:52:05 +01:00
db073f32f0 feat(amd): replace Spotify with Cider-2 in program list
- Replaced `spotify.desktop` with `cider-2.desktop` in `default.nix` under the `programs` list.
- Maintains the curated software list with updated preferences.
2026-01-19 15:48:19 +01:00
f1d19768f9 feat(amd): enable Steam in program configuration
- Added support for Steam by enabling it in `default.nix` under `programs.steam`.
- Aligns with the pattern of including widely used software for enhanced functionality.
2026-01-19 14:24:43 +01:00
fac6ac101a refactor(amd): remove commented syncthing configuration
- Deleted unused Syncthing settings block from `default.nix` to clean up the configuration file.
- Simplifies maintenance and reduces clutter by removing legacy, commented-out code.
2026-01-19 14:11:15 +01:00
3ffb44fd8d refactor(amd): remove mitigations kernel parameter
- Dropped `mitigations=off` from `boot.kernelParams` for improved alignment with security best practices.
- Ensures the system maintains mitigations against CPU vulnerabilities by default.
2026-01-19 09:15:45 +01:00
1d2ac15172 feat(amd): add cider-2 to program list
- Added `cider-2` to the `programs` list in `default.nix` for extended functionality.
- Aligns with the existing pattern of including commonly used utilities.
2026-01-19 09:15:04 +01:00
8ea3c78aa0 feat(amd): add kernel parameters for boot configuration
- Added `lockdown=confidentiality`, `quiet`, `splash`, `video=efifb:nobgrt`, and `mitigations=off` to `boot.kernelParams` for improved boot behavior.
- Enhances security, reduces verbosity, and
2026-01-19 09:13:58 +01:00
ee04de2655 fix(amd): cleanup progs 2026-01-18 14:44:10 +01:00
1390baf77e add util-linux 2026-01-18 14:43:52 +01:00
13bacc1ef1 refactor(amd): remove duplicate ccache settings
ccache is already enabled by metacfg.build module

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 19:21:03 +01:00
06184eb1b3 refactor(nix): remove duplicate settings already provided by NixOS
- Remove default-substituter options (NixOS adds cache.nixos.org)
- Remove "root" from trusted-users and allowed-users (NixOS defaults)
- Simplify substituters/trusted-public-keys to only include extras

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-17 19:20:57 +01:00
cb29ee3c9f fixup! feat(amd): improve system performance and configuration 2026-01-17 18:45:15 +01:00
fdfc795e98 feat(amd): improve system performance and configuration
- Refactored hardware-configuration.nix for better formatting and added `noatime` option for `/` filesystem.
- Enabled `build` service and set CPU frequency governor to `performance` for enhanced optimization.
- Updated default.nix with additional service and power management features.
2026-01-17 18:39:30 +01:00
7f9248ad00 add amd 2026-01-17 14:48:45 +01:00
271b15314c feat(nix): add gnome-remote-desktop and freerdp to overlay
- Included `gnome-remote-desktop` and `freerdp` in the unstable overlay for additional remote desktop functionality.
- Removed the `at-spi2-core` override to simplify the configuration.
2026-01-15 13:54:31 +01:00
c1f145e4c5 fix(nix): correct indentation in at-spi2-core overrideAttrs
- Adjusted the indentation in `at-spi2-core`'s `overrideAttrs` block for consistency.
- Improves readability and maintains uniform code style across the file.
2026-01-15 13:29:36 +01:00
88bf3cbcb8 fix(x1): remove unused Docker and Podman configs
- Disabled `docker.enable` and `podman.dockerCompat` as they are no longer utilized.
- Simplifies the `virtualisation` settings for the x1 system.
2026-01-15 13:25:56 +01:00
f8368162bb feat(nix): override at-spi2-core postInstall script
- Added a `postInstall` modification to adjust the Xwayland session script in `at-spi2-core`.
- Ensures proper replacement of `xprop` with the path to the package's binary.
2026-01-15 13:25:56 +01:00
dbc4d435e9 fix: unixtools is not a package on its own 2026-01-13 09:36:01 +01:00
Harald Hoyer
2b7225af2c refactor(nix): streamline system packages for aarch64-darwin
- Removed unused packages: `azure-cli`, `kubectl`, `kubectx`, `k9s`, `goose-cli`, `aider-chat`, `fabric-ai`, `gemini-cli`, `opencode`
- Reordered `environment.systemPackages` for improved readability
2026-01-12 16:52:50 +01:00
Harald Hoyer
23e67d74d7 fix(nix): remove azure-cli from aarch64-darwin system packages 2026-01-12 16:49:52 +01:00