headplane_headscale_nix/headplane-fix.nix

13 lines
489 B
Nix

# Fixed headplane module override
# This module fixes the type error in the upstream headplane module
# where agent.settings type is incorrectly defined
{ config, lib, pkgs, ... }:
{
options.services.headplane.agent.settings = lib.mkForce (lib.mkOption {
type = lib.types.attrsOf (lib.types.either lib.types.str lib.types.bool);
description = "Headplane agent env vars config. See: https://github.com/tale/headplane/blob/main/docs/Headplane-Agent.md";
default = {};
});
}