68 lines
1.3 KiB
Nix
68 lines
1.3 KiB
Nix
{ config, lib, pkgs, inputs, ... }:
|
|
|
|
with lib;
|
|
|
|
{
|
|
sops.defaultSopsFile = ./secrets.yaml;
|
|
|
|
sops.secrets.ep3bsDb = {
|
|
owner = config.service.ep3-bs.user;
|
|
key = "ep3bsDb";
|
|
};
|
|
|
|
sops.secrets.ep3bsMail = {
|
|
owner = config.service.ep3-bs.user;
|
|
key = "ep3bsMail";
|
|
};
|
|
|
|
boot.isContainer = true;
|
|
networking = {
|
|
hostName = mkDefault "durruti";
|
|
useDHCP = false;
|
|
nameservers = [ "1.1.1.1" ];
|
|
};
|
|
|
|
networking.firewall.allowedTCPPorts = [ 8080 ];
|
|
|
|
environment.systemPackages = with pkgs; [
|
|
go
|
|
gcc
|
|
tmux
|
|
];
|
|
|
|
imports = [
|
|
inputs.ep3-bs.nixosModules.ep3-bs
|
|
inputs.tasklist.nixosModules.malobeo-tasklist
|
|
../modules/malobeo_user.nix
|
|
../modules/sshd.nix
|
|
../modules/minimal_tools.nix
|
|
];
|
|
|
|
services.malobeo-tasklist.enable = true;
|
|
|
|
services.ep3-bs = {
|
|
enable = true;
|
|
in_production = true;
|
|
favicon = ./circle-a.png;
|
|
logo = ./malobeo.png;
|
|
|
|
mail = {
|
|
type = "smtp-tls";
|
|
address = "dynamicdiscorddresden@systemli.org";
|
|
host = "mail.systemli.org";
|
|
user = "dynamicdiscorddresden@systemli.org";
|
|
passwordFile = config.sops.secrets.ep3bsMail.path;
|
|
auth = "plain";
|
|
};
|
|
|
|
|
|
database = {
|
|
user = "malodbuser";
|
|
passwordFile = config.sops.secrets.ep3bsDb.path;
|
|
};
|
|
};
|
|
|
|
system.stateVersion = "22.11"; # Did you read the comment?
|
|
}
|
|
|