Initial creation of llm-agent pi role.

Still building, not sure it'll work, but it's at least building so let's
roll with it.
This commit is contained in:
Eli Ribble 2026-05-08 16:30:29 +00:00
parent 8417871a6d
commit 0e0391eadb
No known key found for this signature in database
5 changed files with 776 additions and 0 deletions

30
modules/system/pi.nix Normal file
View file

@ -0,0 +1,30 @@
{ config, configFiles, inputs, lib, pkgs, ... }:
with lib;
let
cfg = config.myModules.pi;
group = "root";
user = "root";
in {
options.myModules.pi = {
domainName = mkOption {
example = "staging-pi.nidus.cloud";
type = types.str;
};
enable = mkEnableOption "custom pi configuration";
};
config = mkIf config.myModules.pi.enable {
environment.systemPackages = with inputs.llm-agents.packages.${pkgs.stdenv.hostPlatform.system}; [
pi
];
sops.secrets."pi-env" = {
format = "dotenv";
group = "${group}";
mode = "0400";
owner = "${user}";
#restartUnits = ["${nidusNameWebserver}.service"];
sopsFile = ../../secrets/pi.env;
};
};
}