From d413934671078c3f070d16d7ed9518319b8a8d36 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Wed, 30 Sep 2015 16:32:07 +0200 Subject: registered custom auth with ymir --- ymir.nix | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'ymir.nix') diff --git a/ymir.nix b/ymir.nix index a4bef801..58430306 100644 --- a/ymir.nix +++ b/ymir.nix @@ -1,8 +1,9 @@ { config, pkgs, ... }: let - luaPam = pkgs.callPackage ./custom/luaPam.nix {}; - luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; + luaPam = pkgs.callPackage ./custom/luaPam.nix {}; + luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; + prosodyAuth = pkgs.callPackage ./custom/prosody-auth.nix {}; in { imports = [ @@ -28,7 +29,7 @@ in { prosody = pkgs.callPackage ./customized/prosody.nix ({ inherit (pkgs.lua51Packages) luasocket luasec luaexpat luafilesystem luabitop luaevent luazlib; lua5 = pkgs.lua5_1; - extraModules = ["mod_auth_pam"]; + extraModules = [prosodyAuth]; extraLibs = [luaPam luaPosix]; }); }; @@ -98,10 +99,10 @@ in { ]; allowRegistration = false; extraModules = [ "private" - "auth_pam" + "auth_custom" ]; extraConfig = '' - authentication="pam" + authentication="custom" ''; virtualHosts.default = { -- cgit v1.2.3