Simplify boardwise systemd config.
parent
498aa3b51e
commit
ec676fbfbe
|
@ -208,7 +208,7 @@
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1,
|
"lastModified": 1,
|
||||||
"narHash": "sha256-Gze86YwZxMbiW01weBEoPXyNEdAuj+hBTtT/shr/wSo=",
|
"narHash": "sha256-12GAm+zOFk5V1yHAV/LeBvV/kLqE9Cz9WeCSEZbimxQ=",
|
||||||
"path": "./phobos",
|
"path": "./phobos",
|
||||||
"type": "path"
|
"type": "path"
|
||||||
},
|
},
|
||||||
|
|
|
@ -38,8 +38,7 @@
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
systemd = {
|
systemd.services.boardwise = {
|
||||||
services.boardwise = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
description = "BoardWise Server";
|
description = "BoardWise Server";
|
||||||
after = [ "postgresql.service" ];
|
after = [ "postgresql.service" ];
|
||||||
|
@ -54,17 +53,6 @@
|
||||||
ExecStart = "${boardwise.packages.${system}.app}/bin/boardwise start";
|
ExecStart = "${boardwise.packages.${system}.app}/bin/boardwise start";
|
||||||
Restart = "on-failure";
|
Restart = "on-failure";
|
||||||
};
|
};
|
||||||
unitConfig = {
|
|
||||||
ConditionPathExists = "/run/secrets/SECRET_KEY_BASE";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
paths.SECRET_KEY_BASE = {
|
|
||||||
enable = true;
|
|
||||||
pathConfig = {
|
|
||||||
PathExists = "/run/secrets/SECRET_KEY_BASE";
|
|
||||||
Unit = "boardwise.service";
|
|
||||||
};
|
|
||||||
};
|
|
||||||
};
|
};
|
||||||
|
|
||||||
sops.defaultSopsFile = ./secrets.yaml;
|
sops.defaultSopsFile = ./secrets.yaml;
|
||||||
|
|
Loading…
Reference in New Issue