generated from Patagia/template-nix
Compare commits
1 commit
e86a2dec69
...
e05226b63c
Author | SHA1 | Date | |
---|---|---|---|
e05226b63c |
2 changed files with 30 additions and 1 deletions
31
flake.nix
31
flake.nix
|
@ -85,11 +85,40 @@
|
|||
|
||||
patagia-agent = buildCrate "patagia-agent" ./agent;
|
||||
patagia-controller = buildCrate "patagia-controller" ./controller;
|
||||
hostd = buildCrate "hostd" ./hostd;
|
||||
xtask = buildCrate "xtask" ./xtask;
|
||||
in
|
||||
{
|
||||
packages = {
|
||||
inherit patagia-agent patagia-controller xtask;
|
||||
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 ];
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
checks = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue