summary refs log tree commit diff
path: root/nixos/modules/services/networking/mxisd.nix
diff options
context:
space:
mode:
authorMaximilian Güntner <code@sourcediver.org>2019-04-13 16:05:59 +0200
committerMaximilian Güntner <code@sourcediver.org>2019-05-16 21:14:13 +0200
commit1a84bfc0a2ccc3d6119ed714be84568c48289cbb (patch)
treeaf03fcf6c9dd3994559d8b1fa7d32e99cb36f295 /nixos/modules/services/networking/mxisd.nix
parentcbef2d552fac67d85e9911c428d71b8c044444c8 (diff)
downloadnixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.tar
nixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.tar.gz
nixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.tar.bz2
nixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.tar.lz
nixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.tar.xz
nixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.tar.zst
nixpkgs-1a84bfc0a2ccc3d6119ed714be84568c48289cbb.zip
mxisd: 1.2.0 -> 1.4.3
Diffstat (limited to 'nixos/modules/services/networking/mxisd.nix')
-rw-r--r--nixos/modules/services/networking/mxisd.nix10
1 files changed, 1 insertions, 9 deletions
diff --git a/nixos/modules/services/networking/mxisd.nix b/nixos/modules/services/networking/mxisd.nix
index 0b9824f29fd..02e89f441b3 100644
--- a/nixos/modules/services/networking/mxisd.nix
+++ b/nixos/modules/services/networking/mxisd.nix
@@ -103,20 +103,12 @@ in {
       after = [ "network.target" ];
       wantedBy = [ "multi-user.target" ];
 
-      # mxisd / spring.boot needs the configuration to be named "application.yaml"
-      preStart = ''
-        config=${cfg.dataDir}/application.yaml
-        cp ${configFile} $config
-        chmod 444 $config
-      '';
-
       serviceConfig = {
         Type = "simple";
         User = "mxisd";
         Group = "mxisd";
-        ExecStart = "${cfg.package}/bin/mxisd --spring.config.location=${cfg.dataDir}/ --spring.profiles.active=systemd --java.security.egd=file:/dev/./urandom";
+        ExecStart = "${cfg.package}/bin/mxisd -c ${configFile}";
         WorkingDirectory = cfg.dataDir;
-        SuccessExitStatus = 143;
         Restart = "on-failure";
       };
     };