blob: 09637cd7d6e88a87c9a6d205b5860d9c9344d47c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ 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}/";
};
};
}
|