modules/hyprspace: yml -> json

This commit is contained in:
Max Headroom 2023-10-23 23:15:31 +02:00
parent dc51c4250c
commit 58edff1542

View file

@ -12,7 +12,7 @@ let
myNode = depot.reflection; myNode = depot.reflection;
listenPort = myNode.hyprspace.listenPort or 8001; listenPort = myNode.hyprspace.listenPort or 8001;
interfaceConfig = pkgs.writeText "hyprspace.yml" (builtins.toJSON { interfaceConfig = pkgs.writeText "hyprspace.json" (builtins.toJSON {
interface = { interface = {
name = "hyprspace"; name = "hyprspace";
listen_port = listenPort; listen_port = listenPort;
@ -24,7 +24,7 @@ let
}); });
privateKeyFile = config.age.secrets.hyprspace-key.path; privateKeyFile = config.age.secrets.hyprspace-key.path;
runConfig = "/run/hyprspace.yml"; runConfig = "/run/hyprspace.json";
nameservers = lib.unique config.networking.nameservers; nameservers = lib.unique config.networking.nameservers;
in { in {
links.hyprspaceMetrics.protocol = "http"; links.hyprspaceMetrics.protocol = "http";