diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-27 16:17:09 +0200 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2015-09-27 16:17:09 +0200 |
commit | a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb (patch) | |
tree | 6a3582ccb999f2dbde87af62fd5435fec3763206 /ymir.nix | |
parent | 37dc6e32069cc85356f23eba8fa018db8d024db4 (diff) | |
download | nixos-a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb.tar nixos-a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb.tar.gz nixos-a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb.tar.bz2 nixos-a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb.tar.xz nixos-a4067cefd21f3b5c73d9ccf1cc2cbcf173374acb.zip |
Took care of pam_auth deps for prosody
Diffstat (limited to 'ymir.nix')
-rw-r--r-- | ymir.nix | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -1,8 +1,7 @@ | |||
1 | { config, pkgs, ... }: | 1 | { config, pkgs, ... }: |
2 | 2 | ||
3 | let | 3 | let |
4 | prosodyModules = pkgs.callPackage (import ./custom/prosody-modules.nix) { modules = [ "mod_auth_pam" | 4 | luaPam = pkgs.callPackage ./custom/luaPam.nix {}; |
5 | ]; }; | ||
6 | in { | 5 | in { |
7 | imports = | 6 | imports = |
8 | [ | 7 | [ |
@@ -17,6 +16,11 @@ in { | |||
17 | device = "/dev/vda"; | 16 | device = "/dev/vda"; |
18 | }; | 17 | }; |
19 | 18 | ||
19 | nixpkgs.config.packageOverrides = pkgs: | ||
20 | rec { | ||
21 | prosody = pkgs.callPackage ./customized/prosody.nix { extraModules = ["mod_auth_pam"]; extraLibs = [luaPam]; } | ||
22 | }; | ||
23 | |||
20 | environment.systemPackages = with pkgs; [ | 24 | environment.systemPackages = with pkgs; [ |
21 | git | 25 | git |
22 | mosh | 26 | mosh |
@@ -78,11 +82,14 @@ in { | |||
78 | services.prosody = { | 82 | services.prosody = { |
79 | enable = true; | 83 | enable = true; |
80 | admins = [ | 84 | admins = [ |
81 | "g@xmpp.li" | 85 | "gkleen@xmpp.li" |
82 | ]; | 86 | ]; |
83 | allowRegistration = false; | 87 | allowRegistration = false; |
84 | extraModules = [ "private" | 88 | extraModules = [ "private" |
85 | ]; | 89 | ]; |
90 | extraConfig = '' | ||
91 | authentication="pam" | ||
92 | ''; | ||
86 | 93 | ||
87 | virtualHosts.default = { | 94 | virtualHosts.default = { |
88 | enabled = true; | 95 | enabled = true; |