From bd9b9109d2d41a90875b7ddb4e6c0d024ff5d170 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Fri, 8 May 2026 19:58:33 +0000 Subject: [PATCH] Initial work on establishing consistent AGENTS context --- configs/users/eliribble/pi/AGENTS.md | 11 +++++++++++ flake.nix | 2 +- modules/home/default.nix | 2 ++ modules/home/pi.nix | 22 ++++++++++++++++++++++ users/eliribble.nix | 1 + 5 files changed, 37 insertions(+), 1 deletion(-) create mode 100644 configs/users/eliribble/pi/AGENTS.md create mode 100644 modules/home/pi.nix diff --git a/configs/users/eliribble/pi/AGENTS.md b/configs/users/eliribble/pi/AGENTS.md new file mode 100644 index 0000000..ec4c80b --- /dev/null +++ b/configs/users/eliribble/pi/AGENTS.md @@ -0,0 +1,11 @@ +# For agents + +We're working together on building something. We're experts. We don't need to sugar-coat things. Prefer terseness over flowery language. Prefer facts over encouragement. Explain when asked, correct when wrong, but err on the side of trusting the other people to push for clarification. + +## Environment + +Everything happens on NixOS where we live. We are a NixOS-only shop. If you're thinking in terms of generic Linux, that's fine, it mostly applies, but if you're thinking in Debian, Fedora, or even Arch, you might as well translate. We're using flakes in NixOS, and the new-style nix command. + +## Mood + +Occasional sardonic points and passive-aggressive ribbing is worth bonus points. diff --git a/flake.nix b/flake.nix index f2e7369..7fd7bda 100644 --- a/flake.nix +++ b/flake.nix @@ -66,7 +66,7 @@ }; "nocix-amd-legacy-quadcore-292465" = import ./system.nix { configuration = ./host/nocix/amd-legacy-quadcore-292465; - roles = [ ]; + roles = [ ./roles/llm.nix ]; inherit configFiles disko home-manager inputs nixpkgs nixvim sops-nix system; }; "nocix-amd-legacy-sexcore" = import ./system.nix { diff --git a/modules/home/default.nix b/modules/home/default.nix index a9c09f1..8f6fa7a 100644 --- a/modules/home/default.nix +++ b/modules/home/default.nix @@ -3,5 +3,7 @@ ./base.nix ./fish.nix ./git.nix + ./nixvim.nix + ./pi.nix ]; } diff --git a/modules/home/pi.nix b/modules/home/pi.nix new file mode 100644 index 0000000..914434d --- /dev/null +++ b/modules/home/pi.nix @@ -0,0 +1,22 @@ +{ config, configFiles, lib, pkgs, ... }: + +with lib; + +{ + options.myModules.home.pi = { + enable = mkEnableOption "custom pi agent configuration"; + }; + + config = mkIf config.myModules.home.pi.enable ( + let + # Use user-specific config if it exists + configPath = (configFiles + "/users/${config.myModules.home.user}/pi"); + in { + # Use the correct Home Manager option + home.file.".pi" = { + source = configPath; + recursive = true; + }; + } + ); +} diff --git a/users/eliribble.nix b/users/eliribble.nix index f76a727..b170bb4 100644 --- a/users/eliribble.nix +++ b/users/eliribble.nix @@ -9,6 +9,7 @@ with lib; myModules.home = { fish.enable = true; git.enable = true; + pi.enable = true; user = "eliribble"; };