mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
opencrow
This commit is contained in:
24
flake.lock
generated
24
flake.lock
generated
@@ -712,6 +712,29 @@
|
|||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
"opencrow": {
|
||||||
|
"inputs": {
|
||||||
|
"nixpkgs": [
|
||||||
|
"nixpkgs"
|
||||||
|
],
|
||||||
|
"treefmt-nix": [
|
||||||
|
"treefmt-nix"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"locked": {
|
||||||
|
"lastModified": 1771337567,
|
||||||
|
"narHash": "sha256-DiH3hGzC7z6qv39zuFCrMrKDTKdtsN+z/OorsbBdJaQ=",
|
||||||
|
"owner": "pinpox",
|
||||||
|
"repo": "opencrow",
|
||||||
|
"rev": "8da71c7d1d04e27ffb5aade99f67e591d52c30c4",
|
||||||
|
"type": "github"
|
||||||
|
},
|
||||||
|
"original": {
|
||||||
|
"owner": "pinpox",
|
||||||
|
"repo": "opencrow",
|
||||||
|
"type": "github"
|
||||||
|
}
|
||||||
|
},
|
||||||
"retiolum": {
|
"retiolum": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1756302470,
|
"lastModified": 1756302470,
|
||||||
@@ -745,6 +768,7 @@
|
|||||||
"nixpkgs-old": "nixpkgs-old",
|
"nixpkgs-old": "nixpkgs-old",
|
||||||
"nixpkgs-unstable": "nixpkgs-unstable",
|
"nixpkgs-unstable": "nixpkgs-unstable",
|
||||||
"nur": "nur",
|
"nur": "nur",
|
||||||
|
"opencrow": "opencrow",
|
||||||
"retiolum": "retiolum",
|
"retiolum": "retiolum",
|
||||||
"scripts": "scripts",
|
"scripts": "scripts",
|
||||||
"stockholm": "stockholm",
|
"stockholm": "stockholm",
|
||||||
|
|||||||
@@ -46,6 +46,8 @@
|
|||||||
|
|
||||||
agenix.inputs.home-manager.follows = "home-manager";
|
agenix.inputs.home-manager.follows = "home-manager";
|
||||||
|
|
||||||
|
opencrow.inputs.treefmt-nix.follows = "treefmt-nix";
|
||||||
|
|
||||||
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
agenix.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
autorenkalender.inputs.nixpkgs.follows = "nixpkgs";
|
autorenkalender.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
home-manager.inputs.nixpkgs.follows = "nixpkgs";
|
||||||
@@ -284,6 +286,7 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
# packaged from inputs
|
# packaged from inputs
|
||||||
|
opencrow = opencrow.packages.${prev.stdenv.hostPlatform.system}.opencrow;
|
||||||
wetter = wetter.packages.${prev.stdenv.hostPlatform.system}.wetter;
|
wetter = wetter.packages.${prev.stdenv.hostPlatform.system}.wetter;
|
||||||
agenix = agenix.packages.${prev.stdenv.hostPlatform.system}.default;
|
agenix = agenix.packages.${prev.stdenv.hostPlatform.system}.default;
|
||||||
pun-sort-api = scripts.packages.${prev.stdenv.hostPlatform.system}.pun-sort-api;
|
pun-sort-api = scripts.packages.${prev.stdenv.hostPlatform.system}.pun-sort-api;
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ let
|
|||||||
];
|
];
|
||||||
outputHashMode = "recursive";
|
outputHashMode = "recursive";
|
||||||
outputHashAlgo = "sha256";
|
outputHashAlgo = "sha256";
|
||||||
outputHash = "sha256-hfYl0Slxg3nuN6KTtvpWW0QUxtg3JRE0n9N7rIXBTOc=";
|
outputHash = "sha256-ruCukrbH89/uZHhxYSmrcs5NUi2ZG8nuwTEuJKHP2rw=";
|
||||||
impureEnvVars = [
|
impureEnvVars = [
|
||||||
"http_proxy"
|
"http_proxy"
|
||||||
"https_proxy"
|
"https_proxy"
|
||||||
|
|||||||
2
secrets
2
secrets
Submodule secrets updated: 2309c34eb6...94998bbbe0
@@ -11,37 +11,72 @@
|
|||||||
opencrow-soul = {
|
opencrow-soul = {
|
||||||
file = ../../secrets/opencrow-soul.age;
|
file = ../../secrets/opencrow-soul.age;
|
||||||
};
|
};
|
||||||
|
opencrow-gemini-key = {
|
||||||
|
file = ../../secrets/opencrow-gemini-key.age;
|
||||||
};
|
};
|
||||||
|
opencrow-openrouter-key = {
|
||||||
|
file = ../../secrets/opencrow-openrouter-key.age;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
|
environment.systemPackages = [
|
||||||
|
pkgs.pi
|
||||||
|
];
|
||||||
|
|
||||||
services.opencrow = {
|
services.opencrow = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
extraPackages = [ pkgs.pi pkgs.nix ];
|
package = pkgs.opencrow;
|
||||||
|
|
||||||
|
extraPackages = [
|
||||||
|
pkgs.pi
|
||||||
|
pkgs.nix
|
||||||
|
];
|
||||||
|
|
||||||
environmentFiles = [
|
environmentFiles = [
|
||||||
config.age.secrets.opencrow-matrix-token.path
|
config.age.secrets.opencrow-matrix-token.path
|
||||||
|
config.age.secrets.opencrow-openrouter-key.path
|
||||||
|
config.age.secrets.opencrow-gemini-key.path
|
||||||
];
|
];
|
||||||
|
|
||||||
extraBindMounts."/run/secrets/opencrow-soul" = {
|
extraBindMounts."/run/opencrow/SOUL.md" = {
|
||||||
hostPath = config.age.secrets.opencrow-soul.path;
|
hostPath = config.age.secrets.opencrow-soul.path;
|
||||||
isReadOnly = true;
|
isReadOnly = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
extraBindMounts."/nix/var/nix/daemon-socket" = {
|
|
||||||
hostPath = "/nix/var/nix/daemon-socket";
|
|
||||||
isReadOnly = false;
|
|
||||||
};
|
|
||||||
|
|
||||||
environment = {
|
environment = {
|
||||||
|
NIX_REMOTE = "daemon";
|
||||||
|
|
||||||
PI_PERMISSION_LEVEL = "high";
|
PI_PERMISSION_LEVEL = "high";
|
||||||
OPENCROW_MATRIX_HOMESERVER = "https://matrix.4d2.org";
|
OPENCROW_MATRIX_HOMESERVER = "https://matrix.4d2.org";
|
||||||
OPENCROW_MATRIX_USER_ID = "@fable:4d2.org";
|
OPENCROW_MATRIX_USER_ID = "@fable:4d2.org";
|
||||||
OPENCROW_PI_PROVIDER = "github-copilot";
|
OPENCROW_SOUL_FILE = "/run/opencrow/SOUL.md";
|
||||||
OPENCROW_PI_MODEL = "gemini-3-flash-preview";
|
OPENCROW_HEARTBEAT_INTERVAL = "2h";
|
||||||
OPENCROW_SOUL_FILE = "/run/secrets/opencrow-soul";
|
|
||||||
|
# end of the month
|
||||||
|
OPENCROW_PI_PROVIDER = "openrouter";
|
||||||
|
OPENCROW_PI_MODEL = "stepfun/step-3.5-flash:free";
|
||||||
|
# OPENCROW_PI_PROVIDER = "google";
|
||||||
|
# OPENCROW_PI_MODEL = "gemini-2.0-flash";
|
||||||
|
|
||||||
|
# beginning of the month
|
||||||
|
# OPENCROW_PI_PROVIDER = "github-copilot";
|
||||||
|
# OPENCROW_PI_MODEL = "claude-opus-4.6";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
containers.opencrow.config = {
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"flakes"
|
||||||
|
"nix-command"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
|
nix.settings.experimental-features = [
|
||||||
|
"flakes"
|
||||||
|
"nix-command"
|
||||||
|
];
|
||||||
|
|
||||||
services.restic.backups.niveum.paths = [
|
services.restic.backups.niveum.paths = [
|
||||||
"/var/lib/opencrow"
|
"/var/lib/opencrow"
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user