25 lines
694 B
Nix
25 lines
694 B
Nix
{ lib, config, pkgs, ... }:
|
|
|
|
# this isn't really part of biscuit, because "eculocate" is a lot more
|
|
# niche than the rest of it. But it serves as an example of the kind of
|
|
# thing you could put in local/module.nix
|
|
|
|
let
|
|
eculocate = pkgs.callPackage <eculocate/client> {};
|
|
in {
|
|
imports = [ <eculocate/client/module.nix> ];
|
|
config = {
|
|
programs.eculocate = {
|
|
enable = true;
|
|
otaPrivateKeyFile = "/etc/secrets/eculocate/ota.key";
|
|
blePrivateKeyFile = "/etc/secrets/eculocate/client.key";
|
|
blePeerKeyFile = "/etc/secrets/eculocate/device.pub";
|
|
outputPath = "/tmp/eculocate";
|
|
};
|
|
services.avahi = {
|
|
nssmdns4 = true;
|
|
enable = true;
|
|
};
|
|
};
|
|
}
|