working hermes in a docker container
This commit is contained in:
1 parent
f8874f6e15
commit
a9eaaafa93
5 files changed
+38
-49
No files matched your search
+29
-24
@@ -1,6 +1,7 @@
|
|||||||
{ pkgs
|
{ pkgs
|
||||||
, config
|
, config
|
||||||
, nixosUtils
|
, skygUtils
|
||||||
|
, lib
|
||||||
, ...
|
, ...
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
@@ -197,30 +198,34 @@ in
|
|||||||
extra_hosts = [ "host.docker.internal:host-gateway" ];
|
extra_hosts = [ "host.docker.internal:host-gateway" ];
|
||||||
};
|
};
|
||||||
files = {
|
files = {
|
||||||
"/opt/data/config.yaml" = nixosUtils.validateYaml "hermes-config" ''
|
"/opt/data/config.yaml" = lib.generators.toYAML { }
|
||||||
model:
|
{
|
||||||
provider: custom
|
model = {
|
||||||
model: gpt-oss:20b
|
provider = "custom";
|
||||||
base_url: http://host.docker.internal:11434/v1
|
model = "gpt-oss:20b";
|
||||||
api_key: "none"
|
base_url = "http://host.docker.internal:11434/v1";
|
||||||
|
api_key = "none";
|
||||||
memory:
|
};
|
||||||
memory_enabled: true
|
memory = {
|
||||||
user_profile_enabled: true
|
memory_enabled = true;
|
||||||
|
user_profile_enabled = true;
|
||||||
terminal:
|
};
|
||||||
backend: docker
|
terminal = {
|
||||||
|
backend = "local";
|
||||||
gateway:
|
};
|
||||||
platforms:
|
gateway = {
|
||||||
telegram:
|
platforms = {
|
||||||
extra:
|
telegram = {
|
||||||
status_indicator: true
|
extra = {
|
||||||
status_online: "🟢 Online"
|
status_indicator = true;
|
||||||
status_offline: "🔴 Offline"
|
status_online = "🟢 Online";
|
||||||
'';
|
status_offline = "🔴 Offline";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
extraConfig.shm_size = "1g";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
# Signal CLI
|
# Signal CLI
|
||||||
|
|||||||
+8
-10
@@ -11,7 +11,10 @@
|
|||||||
, specialArgs
|
, specialArgs
|
||||||
}:
|
}:
|
||||||
let
|
let
|
||||||
skygUtils = import ./skyg-utils.nix;
|
skygUtils = import ./skyg-utils.nix {
|
||||||
|
pkgs = allPkgs.x86_64-linux;
|
||||||
|
lib = nixpkgs.lib;
|
||||||
|
};
|
||||||
eachSystem = nixpkgs.lib.genAttrs (import systems);
|
eachSystem = nixpkgs.lib.genAttrs (import systems);
|
||||||
allPkgs = eachSystem (
|
allPkgs = eachSystem (
|
||||||
system:
|
system:
|
||||||
@@ -28,11 +31,6 @@ let
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
# Build nixosUtils with access to pkgs and lib
|
# Build nixosUtils with access to pkgs and lib
|
||||||
nixosUtils = import ./nixos-utils.nix {
|
|
||||||
pkgs = allPkgs.x86_64-linux;
|
|
||||||
lib = nixpkgs.lib;
|
|
||||||
};
|
|
||||||
|
|
||||||
osModules = [
|
osModules = [
|
||||||
determinate.nixosModules.default
|
determinate.nixosModules.default
|
||||||
stylix.nixosModules.stylix
|
stylix.nixosModules.stylix
|
||||||
@@ -66,7 +64,7 @@ in
|
|||||||
home-manager.lib.homeManagerConfiguration {
|
home-manager.lib.homeManagerConfiguration {
|
||||||
inherit pkgs;
|
inherit pkgs;
|
||||||
extraSpecialArgs = specialArgs // {
|
extraSpecialArgs = specialArgs // {
|
||||||
inherit system skygUtils nixosUtils;
|
inherit system skygUtils;
|
||||||
user = userConfig;
|
user = userConfig;
|
||||||
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
||||||
};
|
};
|
||||||
@@ -88,7 +86,7 @@ in
|
|||||||
, configuration ? [ ]
|
, configuration ? [ ]
|
||||||
}: nixpkgs.lib.nixosSystem {
|
}: nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
inherit system skygUtils nixosUtils user;
|
inherit system skygUtils user;
|
||||||
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
||||||
};
|
};
|
||||||
inherit system;
|
inherit system;
|
||||||
@@ -110,7 +108,7 @@ in
|
|||||||
, configuration ? [ ]
|
, configuration ? [ ]
|
||||||
}: nixpkgs.lib.nixosSystem {
|
}: nixpkgs.lib.nixosSystem {
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
inherit system skygUtils nixosUtils user;
|
inherit system skygUtils user;
|
||||||
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
||||||
};
|
};
|
||||||
inherit system;
|
inherit system;
|
||||||
@@ -138,7 +136,7 @@ in
|
|||||||
nix-darwin.lib.darwinSystem {
|
nix-darwin.lib.darwinSystem {
|
||||||
inherit system;
|
inherit system;
|
||||||
specialArgs = specialArgs // {
|
specialArgs = specialArgs // {
|
||||||
inherit system skygUtils nixosUtils user;
|
inherit system skygUtils user;
|
||||||
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
unstablePkgs = nixpkgs-unstable.legacyPackages.${system};
|
||||||
};
|
};
|
||||||
modules = [
|
modules = [
|
||||||
|
|||||||
@@ -1,15 +0,0 @@
|
|||||||
{ pkgs, lib }:
|
|
||||||
|
|
||||||
{
|
|
||||||
# YAML validation helper — validates YAML syntax at build time
|
|
||||||
validateYaml = name: content:
|
|
||||||
let
|
|
||||||
validated = pkgs.runCommand "${name}-validated" { } ''
|
|
||||||
${pkgs.yq}/bin/yq eval -e '.' > /dev/null <<'EOF'
|
|
||||||
${content}
|
|
||||||
EOF
|
|
||||||
echo "${content}" > $out
|
|
||||||
'';
|
|
||||||
in
|
|
||||||
validated;
|
|
||||||
}
|
|
||||||
@@ -1,3 +1,4 @@
|
|||||||
|
{ pkgs, lib }:
|
||||||
{
|
{
|
||||||
makeHyperlinkScriptToConfigs =
|
makeHyperlinkScriptToConfigs =
|
||||||
{ filePath
|
{ filePath
|
||||||
|
|||||||
Binary file not shown.
Reference in new issue
Block a user