diff --git a/flake.nix b/flake.nix index 55cd00f..ac97f6e 100644 --- a/flake.nix +++ b/flake.nix @@ -85,40 +85,11 @@ patagia-agent = buildCrate "patagia-agent" ./agent; patagia-controller = buildCrate "patagia-controller" ./controller; - hostd = buildCrate "hostd" ./hostd; xtask = buildCrate "xtask" ./xtask; in { packages = { - inherit - hostd - patagia-agent - patagia-controller - xtask - ; - - hostd-service = - let - hostd-service = pkgs.writeText "hostd.service" '' - [Unit] - Description=Patagia Hostd - - [Service] - Environment=RUST_LOG=debug - ExecStart=${hostd}/bin/hostd - Restart=always - RestartSec=30s - - [Install] - WantedBy=multi-user.target - ''; - in - pkgs.portableService { - pname = "hostd"; - version = "v0.0.1"; - units = [ hostd-service ]; - }; - + inherit patagia-agent patagia-controller xtask; }; checks = { diff --git a/hostd/src/bin/hostd.rs b/hostd/src/bin/hostd-controller.rs similarity index 100% rename from hostd/src/bin/hostd.rs rename to hostd/src/bin/hostd-controller.rs