Compare commits

...

3 Commits

Author SHA1 Message Date
90587d63cb
move authelia into separate file 2024-06-27 20:22:43 -04:00
1720c3c456
minor remove test thing (squash later) 2024-06-26 20:33:47 -04:00
35ea0561f4
rpi4: submodule extension test 2024-06-26 19:01:59 -04:00
2 changed files with 23 additions and 0 deletions

22
hosts/rpi4/authelia.nix Normal file
View File

@ -0,0 +1,22 @@
{ config, lib, pkgs, ... }:
{
# authelia
options.services.nginx = let
inherit (lib) types;
mkAttrsOfSubmoduleOpt = module: lib.mkOption { type = with types; attrsOf (submodule module); };
# make system config accessible from submodules
systemConfig = config;
# submodule definitions
locationModule' = vhostAttrs: { name, config, ... }: {
};
vhostModule = { name, config, ... }@attrs: {
options.locations = mkAttrsOfSubmoduleOpt (locationModule' attrs);
};
in {
virtualHosts = mkAttrsOfSubmoduleOpt vhostModule;
};
}

View File

@ -2,6 +2,7 @@
{
imports = [
./gitea.nix
./authelia.nix
];
config = {