Authentik initial setup
This commit is contained in:
parent
419461db50
commit
a38f4d30a2
2 changed files with 32 additions and 0 deletions
25
nixos/hephaestus/authentik.nix
Normal file
25
nixos/hephaestus/authentik.nix
Normal file
|
@ -0,0 +1,25 @@
|
|||
{ config, pkgs, ... }: {
|
||||
environment.systemPackages = with pkgs; [
|
||||
nginx
|
||||
authentik
|
||||
];
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
# The environmentFile needs to be on the target host!
|
||||
# Best use something like sops-nix or agenix to manage it
|
||||
environmentFile = "/run/secrets/authentik/authentik-env";
|
||||
settings = {
|
||||
#email = {
|
||||
# host = "smtp.example.com";
|
||||
# port = 587;
|
||||
# username = "authentik@example.com";
|
||||
# use_tls = true;
|
||||
# use_ssl = false;
|
||||
# from = "authentik@example.com";
|
||||
#};
|
||||
disable_startup_analytics = true;
|
||||
avatars = "initials";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -4,6 +4,13 @@
|
|||
inputs = {
|
||||
# NixOS official package source, using the nixos-24.11 branch here
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixos-24.11";
|
||||
authentik-nix = {
|
||||
url = "github:nix-community/authentik-nix";
|
||||
|
||||
## optional overrides. Note that using a different version of nixpkgs can cause issues, especially with python dependencies
|
||||
# inputs.nixpkgs.follows = "nixpkgs"
|
||||
# inputs.flake-parts.follows = "flake-parts"
|
||||
};
|
||||
};
|
||||
|
||||
outputs = { self, nixpkgs, ... }@inputs: {
|
||||
|
|
Loading…
Reference in a new issue