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:
parent
8417871a6d
commit
0e0391eadb
5 changed files with 776 additions and 0 deletions
30
modules/system/pi.nix
Normal file
30
modules/system/pi.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue