Add the authentik secrets to the authentik module
This commit is contained in:
parent
859ae228d6
commit
9da3485bfd
5 changed files with 50 additions and 0 deletions
22
modules/system/authentik.nix
Normal file
22
modules/system/authentik.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
{ pkgs, lib, config, ... }:
|
||||
with lib;
|
||||
{
|
||||
options.myModules.authentik.enable = mkEnableOption "custom authentik configuration";
|
||||
|
||||
config = mkIf config.myModules.authentik.enable {
|
||||
sops.secrets.authentik-env = {
|
||||
format = "ini";
|
||||
group = "authentik";
|
||||
mode = "0440";
|
||||
owner = "authentik";
|
||||
restartUnits = ["authentik"];
|
||||
sopsFile = ../../secrets/authentik.ini;
|
||||
};
|
||||
users.groups.authentik = {};
|
||||
users.users.authentik = {
|
||||
group = "authentik";
|
||||
isNormalUser = false;
|
||||
isSystemUser = true;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
{
|
||||
imports = [
|
||||
./authentik.nix
|
||||
./base.nix
|
||||
./cloud-init.nix
|
||||
./do-agent.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue