38 lines
802 B
Nix
38 lines
802 B
Nix
{ config, lib, pkgs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
networking = {
|
|
hostName = mkDefault "discourse";
|
|
useDHCP = false;
|
|
nameservers = [ "1.1.1.1" ];
|
|
};
|
|
|
|
imports = [
|
|
../modules/malobeo_user.nix
|
|
../modules/sshd.nix
|
|
../modules/minimal_tools.nix
|
|
../modules/autoupdate.nix
|
|
];
|
|
|
|
services.discourse = {
|
|
enable = true;
|
|
hostname = "forum.malobeol.org";
|
|
admin = {
|
|
email = "admin@example.org";
|
|
username = "admin";
|
|
fullName = "Admin";
|
|
passwordFile = config.sops.secrets.discourseAdminPasswordFile.path;
|
|
};
|
|
secretKeyBaseFile = config.sops.secrets.discourseSecretKeyBaseFile.path;
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 80 443 ];
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
}
|
|
|