41 lines
753 B
Nix
41 lines
753 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
imports,
|
|
...
|
|
}:
|
|
let
|
|
p = import ../parameters.nix;
|
|
in
|
|
{
|
|
|
|
age.secrets.authentik-env.file = ../../secrets/authentik-env.age;
|
|
|
|
my = {
|
|
utils = {
|
|
commons.enable = true;
|
|
lxc-standard.enable = true;
|
|
};
|
|
|
|
services.authentik = {
|
|
enable = true;
|
|
envFile = config.age.secrets.authentik-env.path;
|
|
email = {
|
|
host = "smtp.eu.mailgun.org";
|
|
port = 587;
|
|
username = "auth@pazpi.top";
|
|
use_tls = true;
|
|
use_ssl = false;
|
|
from = "auth@pazpi.top";
|
|
};
|
|
proxy.domain = p.domains.public;
|
|
};
|
|
virtualisation.proxmox.enable = true;
|
|
};
|
|
|
|
# Extra packages
|
|
environment.systemPackages = with pkgs; [ ];
|
|
|
|
system.stateVersion = "24.11";
|
|
}
|