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 | |
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')
-rw-r--r-- | nixos/configurations/lipwig.nix | 2 | ||||
-rw-r--r-- | nixos/modules/bcg.nix | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/nixos/configurations/lipwig.nix b/nixos/configurations/lipwig.nix index e6ec96a..8b1f3ee 100644 --- a/nixos/configurations/lipwig.nix +++ b/nixos/configurations/lipwig.nix @@ -104,8 +104,8 @@ root = "${pkgs.cgit}/cgit"; locations."/".tryFiles = "$uri @cgit"; locations."@cgit".extraConfig = '' - fastcgi_param SCRIPT_FILENAME ${pkgs.cgit}/cgit/cgit.cgi; fastcgi_pass unix:${config.services.fcgiwrap.socketAddress}; + fastcgi_param SCRIPT_FILENAME ${pkgs.cgit}/cgit/cgit.cgi; fastcgi_param PATH_INFO $uri; fastcgi_param QUERY_STRING $args; fastcgi_param HTTP_HOST $server_name; 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}" ''; |