nix-config/modules/hawser.nix
Renovate Bot 1c73483c13 Update ghcr.io/finsys/hawser Docker tag to v0.2.46 (#15)
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/finsys/hawser](https://github.com/Finsys/hawser) | patch | `0.2.45` → `0.2.46` |

---

> ⚠️ **Warning**
>
> Some dependencies could not be looked up. Check the [Dependency Dashboard](issues/12) for more information.

---

### Release Notes

<details>
<summary>Finsys/hawser (ghcr.io/finsys/hawser)</summary>

### [`v0.2.46`](https://github.com/Finsys/hawser/compare/v0.2.45...v0.2.46)

[Compare Source](https://github.com/Finsys/hawser/compare/v0.2.45...v0.2.46)

</details>

---

### Configuration

📅 **Schedule**: (UTC)

- Branch creation
  - At any time (no schedule defined)
- Automerge
  - At any time (no schedule defined)

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My4xNTAuMSIsInVwZGF0ZWRJblZlciI6IjQzLjE1MC4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->

Reviewed-on: #15
Co-authored-by: Renovate Bot <renovate@jfreudenberger.de>
Co-committed-by: Renovate Bot <renovate@jfreudenberger.de>
2026-06-29 22:46:57 +02:00

48 lines
1.4 KiB
Nix

{
config,
lib,
...
}:
let
cfg = config.services.hawser;
in {
options.services.hawser = {
enable = lib.mkEnableOption "hawser, the agent for Dockhand";
agentName = lib.mkOption {
description = "Name of the hawser agent";
default = config.networking.hostName;
type = lib.types.str;
};
dockhandServerUrl = lib.mkOption {
description = "Websocket endpoint the hawser agent can use to connect to dockhand.";
example = "wss://your-dockhand.example.com/api/hawser/connect";
type = lib.types.str;
};
tokenSecretFile = lib.mkOption {
description = "Agenix secret containing the token as environment variable TOKEN";
type = lib.types.anything;
};
};
config = lib.mkIf cfg.enable {
virtualisation.oci-containers.containers = {
hawser = {
image = "ghcr.io/finsys/hawser:0.2.46@sha256:526a31f81c92ec750e60fc5da0d7551bbcf8441f1effc0b9741ccb2b2b594131";
volumes = [
"/var/run/docker.sock:/var/run/docker.sock"
];
environment = {
STACKS_DIR = "/opt/hawser-stacks";
DOCKHAND_SERVER_URL = cfg.dockhandServerUrl;
AGENT_NAME = cfg.agentName;
};
environmentFiles = [
cfg.tokenSecretFile.path
];
extraOptions = [
''--mount=type=volume,source=hawser-data,target=/opt/hawser-stacks,volume-driver=local''
];
};
};
};
}