@ -1,8 +1,7 @@
|
||||
{ config, lib, self, ... }:
|
||||
{ lib, ... }:
|
||||
|
||||
{
|
||||
imports = [
|
||||
self.inputs.authentik-nix.nixosModules.default
|
||||
./hardware-configuration.nix
|
||||
../server.nix
|
||||
];
|
||||
@ -42,24 +41,6 @@
|
||||
|
||||
services.openssh.settings.PermitRootLogin = lib.mkForce "prohibit-password";
|
||||
|
||||
age.secrets."files/services/authentik/envfile" = {
|
||||
file = "${self.inputs.secrets}/files/services/authentik/envfile.age";
|
||||
};
|
||||
|
||||
services.authentik = {
|
||||
enable = true;
|
||||
environmentFile = config.age.secrets."files/services/authentik/envfile".path;
|
||||
settings = {
|
||||
disable_startup_analytics = true;
|
||||
disable_update_check = true;
|
||||
};
|
||||
nginx = {
|
||||
enable = true;
|
||||
enableACME = true;
|
||||
host = "auth.vimium.com";
|
||||
};
|
||||
};
|
||||
|
||||
modules = rec {
|
||||
databases.postgresql.enable = true;
|
||||
services = {
|
||||
|
Reference in New Issue
Block a user