{ config, lib, pkgs, ... }: let cfg = config.hosehawk; in { imports = [ /home/martin/repos/hosehawk/services/hosenest.nix /home/martin/repos/hosehawk/services/hosehawk.nix ]; options.hosehawk = { port = lib.mkOption { type = lib.types.int; }; }; config = { services.hosenest = { enable = true; port = cfg.port; }; services.hosehawk = { enable = true; hosenestUrl = "http://localhost:${toString cfg.port}/"; }; }; }