Nixfmt Tree
This commit is contained in:
parent
d6bcf1a468
commit
f173b9d236
23 changed files with 381 additions and 224 deletions
|
|
@ -2,11 +2,18 @@
|
|||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf types mkOption mkEnableOption;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkIf
|
||||
types
|
||||
mkOption
|
||||
mkEnableOption
|
||||
;
|
||||
|
||||
cfg = config.foehammer.services.authelia;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.foehammer.services.authelia = {
|
||||
enable = mkEnableOption "Enable authelia server component.";
|
||||
domain = mkOption {
|
||||
|
|
@ -27,7 +34,6 @@ in {
|
|||
type = types.path;
|
||||
};
|
||||
|
||||
|
||||
# https://www.authelia.com/integration/ldap/lldap/
|
||||
ldap = {
|
||||
addr = mkOption {
|
||||
|
|
@ -102,7 +108,7 @@ in {
|
|||
|
||||
settingsFiles = mkOption {
|
||||
type = types.listOf types.path;
|
||||
default = [];
|
||||
default = [ ];
|
||||
example = [
|
||||
"/etc/authelia/config.yml"
|
||||
"/etc/authelia/access-control.yml"
|
||||
|
|
@ -124,7 +130,7 @@ in {
|
|||
If you provide the raw secret rather than the location of a secret file that secret will be preserved in the nix store.
|
||||
For more details: https://www.authelia.com/configuration/methods/secrets/
|
||||
'';
|
||||
default = {};
|
||||
default = { };
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -190,8 +196,7 @@ in {
|
|||
};
|
||||
|
||||
secrets = {
|
||||
inherit
|
||||
(cfg)
|
||||
inherit (cfg)
|
||||
jwtSecretFile
|
||||
oidcIssuerPrivateKeyFile
|
||||
oidcHmacSecretFile
|
||||
|
|
|
|||
|
|
@ -3,11 +3,13 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkOption;
|
||||
|
||||
cfg = config.foehammer.services.forgejo;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.foehammer.services.forgejo = {
|
||||
enable = mkEnableOption "Enable Gitea Server";
|
||||
|
||||
|
|
@ -44,8 +46,8 @@ in {
|
|||
|
||||
settings = {
|
||||
service = {
|
||||
DISABLE_REGISTRATION = true;
|
||||
SHOW_REGISTRATION_BUTTON = false;
|
||||
DISABLE_REGISTRATION = true;
|
||||
SHOW_REGISTRATION_BUTTON = false;
|
||||
};
|
||||
ui = {
|
||||
SHOW_USER_EMAIL = false;
|
||||
|
|
|
|||
|
|
@ -3,11 +3,13 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkOption;
|
||||
|
||||
cfg = config.foehammer.services.goatcounter;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.foehammer.services.goatcounter = {
|
||||
enable = mkEnableOption "Enable goatcounter server";
|
||||
|
||||
|
|
@ -26,7 +28,7 @@ in {
|
|||
createHome = true;
|
||||
group = "goatcounter";
|
||||
};
|
||||
users.groups.goatcounter = {};
|
||||
users.groups.goatcounter = { };
|
||||
|
||||
systemd.services.goatcounter = {
|
||||
serviceConfig = {
|
||||
|
|
|
|||
|
|
@ -3,11 +3,18 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkEnableOption types mkIf mkOption;
|
||||
}:
|
||||
let
|
||||
inherit (lib)
|
||||
mkEnableOption
|
||||
types
|
||||
mkIf
|
||||
mkOption
|
||||
;
|
||||
|
||||
cfg = config.foehammer.services.lldap;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.foehammer.services.lldap = {
|
||||
enable = mkEnableOption "Enable LLDAP Server";
|
||||
|
||||
|
|
@ -77,7 +84,7 @@ in {
|
|||
createHome = true;
|
||||
group = "lldap";
|
||||
};
|
||||
users.groups.lldap = {};
|
||||
users.groups.lldap = { };
|
||||
|
||||
systemd.services.lldap.serviceConfig.DynamicUser = lib.mkForce false;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -3,11 +3,13 @@
|
|||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}: let
|
||||
}:
|
||||
let
|
||||
inherit (lib) mkEnableOption mkIf mkOption;
|
||||
|
||||
cfg = config.foehammer.services.vaultwarden;
|
||||
in {
|
||||
in
|
||||
{
|
||||
options.foehammer.services.vaultwarden = {
|
||||
enable = mkEnableOption "Enable Vaultwarden Server";
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue