diff options
-rw-r--r-- | ymir.nix | 11 |
1 files changed, 6 insertions, 5 deletions
@@ -1,8 +1,9 @@ | |||
1 | { config, pkgs, ... }: | 1 | { config, pkgs, ... }: |
2 | 2 | ||
3 | let | 3 | let |
4 | luaPam = pkgs.callPackage ./custom/luaPam.nix {}; | 4 | luaPam = pkgs.callPackage ./custom/luaPam.nix {}; |
5 | luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; | 5 | luaPosix = pkgs.callPackage ./custom/luaPosix.nix {}; |
6 | prosodyAuth = pkgs.callPackage ./custom/prosody-auth.nix {}; | ||
6 | in { | 7 | in { |
7 | imports = | 8 | imports = |
8 | [ | 9 | [ |
@@ -28,7 +29,7 @@ in { | |||
28 | prosody = pkgs.callPackage ./customized/prosody.nix ({ | 29 | prosody = pkgs.callPackage ./customized/prosody.nix ({ |
29 | inherit (pkgs.lua51Packages) luasocket luasec luaexpat luafilesystem luabitop luaevent luazlib; | 30 | inherit (pkgs.lua51Packages) luasocket luasec luaexpat luafilesystem luabitop luaevent luazlib; |
30 | lua5 = pkgs.lua5_1; | 31 | lua5 = pkgs.lua5_1; |
31 | extraModules = ["mod_auth_pam"]; | 32 | extraModules = [prosodyAuth]; |
32 | extraLibs = [luaPam luaPosix]; | 33 | extraLibs = [luaPam luaPosix]; |
33 | }); | 34 | }); |
34 | }; | 35 | }; |
@@ -98,10 +99,10 @@ in { | |||
98 | ]; | 99 | ]; |
99 | allowRegistration = false; | 100 | allowRegistration = false; |
100 | extraModules = [ "private" | 101 | extraModules = [ "private" |
101 | "auth_pam" | 102 | "auth_custom" |
102 | ]; | 103 | ]; |
103 | extraConfig = '' | 104 | extraConfig = '' |
104 | authentication="pam" | 105 | authentication="custom" |
105 | ''; | 106 | ''; |
106 | 107 | ||
107 | virtualHosts.default = { | 108 | virtualHosts.default = { |