Working on modularizing stuff, again
This commit is contained in:
parent
b698ce3485
commit
9ba5f8fdf0
32 changed files with 1481 additions and 88 deletions
19
modules/services/auth.nix
Normal file
19
modules/services/auth.nix
Normal file
|
@ -0,0 +1,19 @@
|
|||
{ config, options, lib, pkgs, ... }:
|
||||
let
|
||||
inherit (lib.modules) mkIf;
|
||||
in
|
||||
{
|
||||
options.modules.services.auth = let
|
||||
inherit (lib.options) mkEnableOption;
|
||||
in {
|
||||
enable = mkEnableOption "Media auth";
|
||||
};
|
||||
|
||||
config = mkMerge [
|
||||
(mkIf config.modules.services.auth.enable (
|
||||
environment.systemPackages = with pkgs; [
|
||||
authelia
|
||||
];
|
||||
))
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue