Skip to content

Commit

Permalink
Simplify kn_initial_state service dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucus16 committed Oct 13, 2024
1 parent 33e94ec commit 02c3196
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions nix/services/kn/shared.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34,21 +34,11 @@ in {
users.groups.infra = {};
environment.systemPackages = [ pkgs.mongosh knshell ];
systemd.services = lib.mkIf cfg.initialDB {
giedo = rec {
requires = [ "kn_initial_state.service" ];
after = requires;
};
kndjango = rec {
requires = [ "kn_initial_state.service" ];
after = requires;
};
rimapd = rec {
requires = [ "kn_initial_state.service" ];
after = requires;
};
kn_initial_state = rec {
requires = [ "mongodb.service" ];
after = requires;
requiredBy = [ "giedo.service" "kndjango.service" "rimapd.service" ];
before = requiredBy;
serviceConfig = {
StateDirectory = "kndjango";
Type = "oneshot";
Expand Down

0 comments on commit 02c3196

Please sign in to comment.