Commit 5290a0e15dac

Vincent Demeester <vincent@sbr.pm>
2021-10-26 19:03:48
systems: remove secretCondition on mails
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
1 parent 16ddfd3
Changed files (1)
systems
modules
profiles
systems/modules/profiles/mail.nix
@@ -3,8 +3,6 @@
 with lib;
 let
   cfg = config.profiles.mail;
-  secretPath = ../../../secrets/machines.nix;
-  secretCondition = (builtins.pathExists secretPath);
 in
 {
   options = {
@@ -16,7 +14,7 @@ in
       };
     };
   };
-  config = mkIf (cfg.enable && secretCondition) {
+  config = mkIf (cfg.enable) {
     sops.secrets.msmtprc = {
       path = "/etc/msmtprc";
     };