local-module-eculocate.nix (694B)
1 { lib, config, pkgs, ... }: 2 3 # this isn't really part of biscuit, because "eculocate" is a lot more 4 # niche than the rest of it. But it serves as an example of the kind of 5 # thing you could put in local/module.nix 6 7 let 8 eculocate = pkgs.callPackage <eculocate/client> {}; 9 in { 10 imports = [ <eculocate/client/module.nix> ]; 11 config = { 12 programs.eculocate = { 13 enable = true; 14 otaPrivateKeyFile = "/etc/secrets/eculocate/ota.key"; 15 blePrivateKeyFile = "/etc/secrets/eculocate/client.key"; 16 blePeerKeyFile = "/etc/secrets/eculocate/device.pub"; 17 outputPath = "/tmp/eculocate"; 18 }; 19 services.avahi = { 20 nssmdns4 = true; 21 enable = true; 22 }; 23 }; 24 }