Commit bb2a6ec7 authored by Niklas Hambüchen's avatar Niklas Hambüchen Committed by Kerstin
Browse files

nixos/smokeping: Use requiredBy instead of wantedBy.

This makes switch-configuration fail if something is wrong with it,
which is desired especially for NixOps deployments.
parent 123171b5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -313,7 +313,7 @@ in
    };
    users.groups.${cfg.user} = {};
    systemd.services.smokeping = {
      wantedBy = [ "multi-user.target"];
      requiredBy = [ "multi-user.target"];
      serviceConfig = {
        User = cfg.user;
        Restart = "on-failure";
@@ -330,7 +330,7 @@ in
      '';
    };
    systemd.services.thttpd = mkIf cfg.webService {
      wantedBy = [ "multi-user.target"];
      requiredBy = [ "multi-user.target"];
      requires = [ "smokeping.service"];
      path = with pkgs; [ bash rrdtool smokeping thttpd ];
      serviceConfig = {