modules/hyprspace: make RPC usable

This commit is contained in:
Max Headroom 2023-01-20 23:38:43 +01:00
parent 1c1e448d8b
commit 2dcb333904

View file

@ -33,6 +33,9 @@ in {
file = ../../secrets/hyprspace-key- + "${hostName}.age"; file = ../../secrets/hyprspace-key- + "${hostName}.age";
mode = "0400"; mode = "0400";
}; };
environment.systemPackages = [
hyprspace
];
systemd.services.hyprspace = { systemd.services.hyprspace = {
enable = true; enable = true;
wantedBy = [ "multi-user.target" ]; wantedBy = [ "multi-user.target" ];
@ -49,6 +52,7 @@ in {
HYPRSPACE_IPFS_API = config.services.kubo.settings.Addresses.API; HYPRSPACE_IPFS_API = config.services.kubo.settings.Addresses.API;
}; };
serviceConfig = { serviceConfig = {
Group = "wheel";
Restart = "on-failure"; Restart = "on-failure";
RestartSec = "5s"; RestartSec = "5s";
ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}"; ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}";