Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Init limesurvey on caliban #417

Merged
merged 2 commits into from
Jul 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions non-critical-infra/hosts/caliban.nixos.org/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
../../modules/matrix-synapse.nix
../../modules/owncast.nix
../../modules/vaultwarden.nix
./limesurvey-tmp.nix
];

# Bootloader.
Expand Down
31 changes: 31 additions & 0 deletions non-critical-infra/hosts/caliban.nixos.org/limesurvey-tmp.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# the content of this file should be put in the modules folder once the actual module has been upstreamed
# PR: https://github.com/NixOS/nixpkgs/pull/325665/
{ config, pkgs, ... }:
{
disabledModules = [ "services/web-apps/limesurvey.nix" ];

imports = [ ../../modules/limesurvey.nix ];

services.limesurvey = {
enable = true;
encryptionKeyFile = config.sops.secrets.limesurvey-encryption-key.path;
encryptionNonceFile = config.sops.secrets.limesurvey-encryption-nonce.path;
virtualHost = {
serverName = "survey.nixos.org";
enableACME = true;
forceSSL = true;
};
};

sops.secrets.limesurvey-encryption-key = {
format = "binary";
sopsFile = ../../secrets/limesurvey-encryption-key.caliban;
};

sops.secrets.limesurvey-encryption-nonce = {
format = "binary";
sopsFile = ../../secrets/limesurvey-encryption-nonce.caliban;
};


}
Loading
Loading