refactor(ops/nixos): migrate to depot module arg
Previously the depot argument was provided as config.depot, but the "new way" of doing things (which is more like the args list provided in the rest of the depot) is to provide this as the "depot" NixOS module argument instead. Change-Id: Ib48b1c7c1bdff9c1eb0618c6cbacc22b651f5f98 Reviewed-on: https://cl.tvl.fyi/c/depot/+/2763 Tested-by: BuildkiteCI Reviewed-by: tazjin <mail@tazj.in> Reviewed-by: glittershark <grfn@gws.fyi>
This commit is contained in:
parent
999f98436c
commit
b35e358eb5
15 changed files with 30 additions and 35 deletions
|
@ -1,5 +1,5 @@
|
|||
# NixOS module for configuring the simple SMTP relay.
|
||||
{ pkgs, config, lib, ... }:
|
||||
{ depot, pkgs, config, lib, ... }:
|
||||
|
||||
let
|
||||
inherit (builtins) attrValues mapAttrs;
|
||||
|
@ -40,7 +40,7 @@ in {
|
|||
config = mkIf cfg.enable {
|
||||
systemd.services.smtprelay = {
|
||||
inherit description;
|
||||
script = "${config.depot.third_party.smtprelay}/bin/smtprelay ${prepareArgs cfg.args}";
|
||||
script = "${depot.third_party.smtprelay}/bin/smtprelay ${prepareArgs cfg.args}";
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
|
||||
serviceConfig = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue