mirror of
https://github.com/harryssecret/homelab-nix.git
synced 2025-08-09 07:00:21 +02:00
started refactoring
This commit is contained in:
parent
729050b005
commit
f61d2eedef
36 changed files with 12 additions and 10 deletions
40
hosts/sisyphe/features/authentik.nix
Normal file
40
hosts/sisyphe/features/authentik.nix
Normal file
|
@ -0,0 +1,40 @@
|
|||
{ config, ... }:
|
||||
let
|
||||
authentik-version = "2024.6.1";
|
||||
authentik-nix-src = builtins.fetchTarball {
|
||||
url = "https://github.com/nix-community/authentik-nix/archive/version/${authentik-version}.tar.gz";
|
||||
sha256 = "10ss29nzifyrq44080mjqa6xl6qw9mz755xcrla3kjxjl7d0mvlz";
|
||||
};
|
||||
authentik-nix = import authentik-nix-src;
|
||||
cfg = config.authentik;
|
||||
in
|
||||
{
|
||||
imports = [ authentik-nix.nixosModules.default ];
|
||||
sops.secrets."authentik" = {
|
||||
sopsFile = ../secrets/authentik.env;
|
||||
format = "dotenv";
|
||||
};
|
||||
|
||||
/*
|
||||
sops.secrets.mail-server = {
|
||||
sopsFile = ./secrets/mail.json;
|
||||
format = "json";
|
||||
};
|
||||
*/
|
||||
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
environmentFile = config.sops.secrets."authentik".path;
|
||||
settings = {
|
||||
/*
|
||||
email = {
|
||||
host = config.sops.secrets.mail-server."host";
|
||||
username = config.sops.secrets.mail-server."username";
|
||||
};
|
||||
*/
|
||||
|
||||
disable_startup_analytics = true;
|
||||
avatars = "initials";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue