Unverified Commit fcfadc68 authored by h7x4's avatar h7x4 Committed by GitHub
Browse files

nixos/pinchflat: make TZ variable optional (#452647)

parents 7e58870e b317daf2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -147,7 +147,6 @@ in
        StateDirectory = baseNameOf stateDir;
        Environment = [
          "PORT=${builtins.toString cfg.port}"
          "TZ=${config.time.timeZone}"
          "MEDIA_PATH=${cfg.mediaDir}"
          "CONFIG_PATH=${stateDir}"
          "DATABASE_PATH=${stateDir}/db/pinchflat.db"
@@ -160,6 +159,7 @@ in
          "PHX_SERVER=true"
        ]
        ++ optional cfg.selfhosted [ "RUN_CONTEXT=selfhosted" ]
        ++ optional (!isNull config.time.timeZone) "TZ=${config.time.timeZone}"
        ++ attrValues (mapAttrs (name: value: name + "=" + builtins.toString value) cfg.extraConfig);
        EnvironmentFile = optional (cfg.secretsFile != null) cfg.secretsFile;
        ExecStartPre = "${lib.getExe' cfg.package "migrate"}";