Adding kanidm

This commit is contained in:
Lyes Saadi 2025-10-12 23:42:31 +02:00
parent 630f7f6d68
commit b25c686151
Signed by: lyes
GPG key ID: 55A1D803917CF39A
9 changed files with 95 additions and 8 deletions

View file

@ -8,11 +8,13 @@
./hardware.nix
./networking.nix
# ./disko-config.nix
./reverse-proxy.nix
../../users/lyes
../../modules
../../modules/server
../../modules/server/idm
# disko.nixosModules.disko
agenix.nixosModules.default

View file

@ -42,6 +42,12 @@
options = [ "subvol=root" ];
};
fileSystems."/var/data" =
{ device = "/dev/md127";
fsType = "btrfs";
options = [ ];
};
swapDevices = [ ];
# Enables DHCP on each ethernet and wireless interface. In case of scripted networking

View file

@ -0,0 +1,24 @@
{ config, ... }:
{
security.acme = {
acceptTerms = true;
defaults.email = "security@lyes.eu";
};
services.nginx = {
enable = true;
recommendedProxySettings = true;
recommendedTlsSettings = true;
virtualHosts = {
"auth.lyes.eu" = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "https://${config.services.kanidm.serverSettings.bindaddress}";
};
};
};
};
}