Skip to content

Commit

Permalink
better startup logic
Browse files Browse the repository at this point in the history
  • Loading branch information
GoldsteinE committed Sep 10, 2022
1 parent 1bf2739 commit 35ec6b0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion module.nix
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ in
config = {
environment.systemPackages = [ classified ];
systemd.services.classified = ifEnabled { } {
wantedBy = [ "multi-user.target" ];
wantedBy = [ "basic.target" ];
restartTriggers = [ jsonConfig ];
serviceConfig.Type = "notify";
script = ''
${classified}/bin/classified batch ${jsonConfig}
${pkgs.systemd}/bin/systemd-notify --ready
${pkgs.coreutils}/bin/sleep inf
'';
};
Expand Down

0 comments on commit 35ec6b0

Please sign in to comment.