diff options
author | Karel Kočí <cynerd@email.cz> | 2024-05-07 15:39:16 +0200 |
---|---|---|
committer | Karel Kočí <cynerd@email.cz> | 2024-05-07 15:39:16 +0200 |
commit | 900dca47135dc98cac6eea1922acd346e4e911ff (patch) | |
tree | 349be74fbf47329710b26ef5b1e6cf0974ef6553 /nixos/modules | |
parent | a39660e8218d20177bcf95218e9bca3d9fcb5831 (diff) | |
download | nixos-personal-900dca47135dc98cac6eea1922acd346e4e911ff.tar.gz nixos-personal-900dca47135dc98cac6eea1922acd346e4e911ff.tar.bz2 nixos-personal-900dca47135dc98cac6eea1922acd346e4e911ff.zip |
nixos/bcg: try to fix
Diffstat (limited to 'nixos/modules')
-rw-r--r-- | nixos/modules/bcg.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/bcg.nix b/nixos/modules/bcg.nix index 3146c15..ea89e3a 100644 --- a/nixos/modules/bcg.nix +++ b/nixos/modules/bcg.nix @@ -146,14 +146,14 @@ in { envConfig = cfg.environmentFiles != []; finalConfig = if envConfig - then "$RUNTIME_DIRECTORY/bcg.config.yaml" + then "\${RUNTIME_DIRECTORY}/bcg.config.yaml" else configFile; in { description = "BigClown Gateway"; wantedBy = ["multi-user.target"]; wants = ["network-online.target"] ++ lib.optional config.services.mosquitto.enable "mosquitto.service"; after = ["network-online.target"]; - preStart = '' + preStart = mkIf envConfig '' umask 077 ${pkgs.envsubst}/bin/envsubst -i "${configFile}" -o "${finalConfig}" ''; |