diff options
author | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-02 09:48:05 +0200 |
---|---|---|
committer | Ismaël Bouya <ismael.bouya@normalesup.org> | 2019-06-02 11:23:54 +0200 |
commit | 717ccfd957e686d773480df817387aebbe79aa48 (patch) | |
tree | b2f59c57da32dcafefee9ccc5d7e6d32e498721e /modules/websites/default.nix | |
parent | 29f8cb850d74b456d6481a456311bbf5361d328c (diff) | |
download | Nix-717ccfd957e686d773480df817387aebbe79aa48.tar.gz Nix-717ccfd957e686d773480df817387aebbe79aa48.tar.zst Nix-717ccfd957e686d773480df817387aebbe79aa48.zip |
Finish moving aten php configuration to dedicated module
Diffstat (limited to 'modules/websites/default.nix')
-rw-r--r-- | modules/websites/default.nix | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/modules/websites/default.nix b/modules/websites/default.nix index ef79cb3..043fc6e 100644 --- a/modules/websites/default.nix +++ b/modules/websites/default.nix | |||
@@ -23,14 +23,6 @@ in | |||
23 | Name of the webapp dir to create in /run/current-system | 23 | Name of the webapp dir to create in /run/current-system |
24 | ''; | 24 | ''; |
25 | }; | 25 | }; |
26 | webappDirsPath = mkOption { | ||
27 | type = str; | ||
28 | readOnly = true; | ||
29 | description = '' | ||
30 | Full path of the webapp dir | ||
31 | ''; | ||
32 | default = "/run/current-system/${cfg.webappDirsName}"; | ||
33 | }; | ||
34 | env = mkOption { | 26 | env = mkOption { |
35 | default = {}; | 27 | default = {}; |
36 | description = "Each type of website to enable will target a distinct httpd server"; | 28 | description = "Each type of website to enable will target a distinct httpd server"; |
@@ -126,6 +118,17 @@ in | |||
126 | }; | 118 | }; |
127 | }); | 119 | }); |
128 | }; | 120 | }; |
121 | # Readonly variables | ||
122 | webappDirsPaths = mkOption { | ||
123 | type = attrsOf path; | ||
124 | readOnly = true; | ||
125 | description = '' | ||
126 | Full paths of the webapp dir | ||
127 | ''; | ||
128 | default = attrsets.mapAttrs' (name: icfg: attrsets.nameValuePair | ||
129 | name "/run/current-system/${cfg.webappDirsName}/${name}" | ||
130 | ) cfg.webappDirs; | ||
131 | }; | ||
129 | }; | 132 | }; |
130 | 133 | ||
131 | config.services.httpd = let | 134 | config.services.httpd = let |