update kernel
This commit is contained in:
50
system-config/services/containers/authentik-nix/default.nix
Normal file
50
system-config/services/containers/authentik-nix/default.nix
Normal file
@@ -0,0 +1,50 @@
|
||||
{ config, lib, inputs, ... }: {
|
||||
|
||||
options.sysconfig.opts.virtualization.authentik.enable = lib.options.mkOption {
|
||||
type = lib.types.bool;
|
||||
default = false;
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.authentik-nix.nixosModules.default
|
||||
];
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.authentik.enable {
|
||||
|
||||
sops.templates."authentik.env" = {
|
||||
content = ''
|
||||
AUTHENTIK_EMAIL__PASSWORD=${config.sops.placeholder."authentik/pass"}
|
||||
AUTHENTIK_SECRET_KEY=${config.sops.placeholder."authentik/secret_key"}
|
||||
'';
|
||||
|
||||
path = "/ssd1/Authentik/data/authentik.env";
|
||||
};
|
||||
|
||||
containers.authentik = {
|
||||
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.12";
|
||||
bindMounts = {
|
||||
"/root/data" = {
|
||||
hostPath = "/ssd1/Authentik/data";
|
||||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
config = {
|
||||
|
||||
services.authentik = {
|
||||
|
||||
enable = true;
|
||||
environmentFile = "/root/data/authentik.env";
|
||||
settings = {
|
||||
disable_startup_analytics = false;
|
||||
avatars = "initials";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
};
|
||||
}
|
||||
@@ -5,6 +5,10 @@
|
||||
default = false;
|
||||
};
|
||||
|
||||
imports = [
|
||||
inputs.arion.nixosModules.arion
|
||||
];
|
||||
|
||||
config = lib.mkIf config.sysconfig.opts.virtualization.authentik.enable {
|
||||
|
||||
sops.templates."authentik.env" = {
|
||||
@@ -16,42 +20,12 @@
|
||||
path = "/ssd1/Authentik/data/authentik.env";
|
||||
};
|
||||
|
||||
containers.authentik = {
|
||||
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.13";
|
||||
virtualisation.arion.projects.authentik = {
|
||||
serviceName = "authentik";
|
||||
|
||||
bindMounts = {
|
||||
"/root/data" = {
|
||||
hostPath = "/ssd1/Authentik/data";
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
||||
imports = [
|
||||
inputs.authentik-nix.nixosModules.default
|
||||
];
|
||||
settings = {
|
||||
|
||||
services.authentik = {
|
||||
|
||||
enable = true;
|
||||
environmentFile = "/root/data/authentik.env";
|
||||
|
||||
settings = {
|
||||
#disable_startup_analytics = true;
|
||||
avatars = "initials";
|
||||
};
|
||||
|
||||
};
|
||||
|
||||
networking.firewall.enable = false;
|
||||
|
||||
system.stateVersion = "24.05";
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
@@ -3,6 +3,6 @@
|
||||
imports = [
|
||||
./gitlab
|
||||
./traefik
|
||||
./authentik
|
||||
./authentik-nix
|
||||
];
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
autoStart = true;
|
||||
privateNetwork = true;
|
||||
hostAddress = "192.168.100.10";
|
||||
localAddress = "192.168.100.12";
|
||||
localAddress = "192.168.100.";
|
||||
bindMounts = {
|
||||
"/etc/gitlab/data" = {
|
||||
hostPath = "/ssd1/Gitlab/data";
|
||||
|
||||
0
system-config/services/containers/httpd/default.nix
Normal file
0
system-config/services/containers/httpd/default.nix
Normal file
Reference in New Issue
Block a user