KitchenOwl is a smart grocery list and recipe manager. Flake for Nixos for running backend and frontend https://kitchenowl.org/
  • Nix 85.7%
  • Just 14.3%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
2026-11-11 20:33:44 +01:00
pkgs feat: update KitchenOwl to 0.8.1 (#10) 2026-11-09 20:27:11 +00:00
services fix: Trying to write to read-only dir 2026-06-13 11:26:10 +00:00
.gitignore feat: Add basic test for backend service 2026-01-25 12:19:25 +01:00
AGENTS.md feat: Add treefmt formatter 2026-04-30 20:29:09 +02:00
CODEOWNERS Migration: codeowners (#9) 2026-10-28 19:40:45 +00:00
flake.lock feat: update KitchenOwl to 0.8.1 (#10) 2026-11-09 20:27:11 +00:00
flake.nix chore(release): add flake version and tagging workflow 2026-11-09 20:39:58 +00:00
justfile chore(release): add flake version and tagging workflow 2026-11-09 20:39:58 +00:00
LICENSE Initial commit 2025-09-30 15:24:20 +00:00
README.md docs: update repository path after transfer to Personal 2026-11-11 20:33:44 +01:00
renovate.json feat: Add treefmt formatter 2026-04-30 20:29:09 +02:00
tests.nix fix: Trying to write to read-only dir 2026-06-13 11:26:10 +00:00
treefmt.nix feat: Add treefmt formatter 2026-04-30 20:29:09 +02:00

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:

  • version is the upstream KitchenOwl version.
  • revision counts flake-only releases on top of that upstream version, starting at 0.

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";