- Nix 85.7%
- Just 14.3%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
|
|
||
| pkgs | ||
| services | ||
| .gitignore | ||
| AGENTS.md | ||
| CODEOWNERS | ||
| flake.lock | ||
| flake.nix | ||
| justfile | ||
| LICENSE | ||
| README.md | ||
| renovate.json | ||
| tests.nix | ||
| treefmt.nix | ||
kitchenowl-flake
Kitchenowl flake including backend and frontend.
Based on config by Sebastion Alvarez Rodriguez's: nixos-pc
How to use
Add to your config
# flake.nix
{
inputs = {
kitchenowl.url = "git+https://codeberg.org/martials/kitchenowl-flake";
};
outputs = { }: {};
}
# nixos-configuration.nix
{ inputs }:
{
imports = [
inputs.kitchenowl.nixosModules.${system}.kitchenowl
];
services.kitchenowl = {
enable = true;
web.enable = true;
settings = {
use-natural-language = true;
http = {
domain = "kitchenowl.example.com";
listenAddress = "localhost";
port = 8888;
};
};
extra-settings = {
JWT_SECRET_KEY_FILE = config.sops.secrets."kitchenowl/jwt-secret-key".path;
};
};
sops.secrets."kitchenowl/jwt-secret-key".owner = "kitchenowl";
}
Time zone
The backend's scheduler (APScheduler) and Celery worker resolve the host's local time zone through
tzlocal, which reads TZ, /etc/timezone, and
/etc/localtime. On a host where none of these is configured — the default when a NixOS system
leaves time.timeZone unset — time zone resolution falls back to UTC and the backend logs this on
every start:
UserWarning: Can not find any timezone configuration, defaulting to UTC.
Scheduled jobs then run on UTC. Set the system time zone to fix it for KitchenOwl and every other service on the host:
{
time.timeZone = "Europe/Oslo";
}
If the host has to stay on UTC, set the time zone for the backend only:
{
services.kitchenowl.extra-settings.TZ = "Europe/Oslo";
}
Releases
Two versions are tracked in flake.nix:
versionis the upstream KitchenOwl version.revisioncounts flake-only releases on top of that upstream version, starting at0.
Tags combine both, so a release can be pinned precisely:
| Tag | Meaning |
|---|---|
v0.8.1 |
First release packaging KitchenOwl 0.8.1 |
v0.8.1-1 |
First flake-only release on top of 0.8.1 |
To cut a release, run just release, which verifies the tree is clean and at
origin/main, creates an annotated tag for flakeVersion, and pushes it. After a
flake-only change (dependency bump, packaging fix) run just release-bump first,
then just release.
Pin a release from another flake with:
inputs.kitchenowl.url = "git+https://code.martials.no/Personal/kitchenowl-flake?ref=v0.8.1";