Summary Files Commits Branches @commit @diff @stats
diff options
context:
space:
mode:
3 files changed, 14 insertions, 1 deletions
-rw-r--r--machines/cpx11-hel1/sysidentity.nix2
-rw-r--r--module-groups.nix4
-rw-r--r--modules/server/apache2.nix9
diff --git a/machines/cpx11-hel1/sysidentity.nix b/machines/cpx11-hel1/sysidentity.nix
index cc057a6..396baf7 100644
--- a/machines/cpx11-hel1/sysidentity.nix
+++ b/machines/cpx11-hel1/sysidentity.nix
@@ -3,5 +3,5 @@ groups: {
arch = "x86_64-linux";
kind = "server";
- include = groups.barebones;
+ include = groups.server;
}
diff --git a/module-groups.nix b/module-groups.nix
index dbd00fc..c94297b 100644
--- a/module-groups.nix
+++ b/module-groups.nix
@@ -17,4 +17,8 @@ rec {
laptop = personal ++ [
"battery" "hardware-laptop"
];
+
+ server = barebones ++ [
+ "apache2"
+ ];
}
diff --git a/modules/server/apache2.nix b/modules/server/apache2.nix
new file mode 100644
index 0000000..0ae1521
--- /dev/null
+++ b/modules/server/apache2.nix
@@ -0,0 +1,9 @@
+{ pkgs, ... }: {
+ environment.systemPackages = with pkgs; [
+ apacheHttpd
+ ];
+ services.httpd = {
+ enable = true;
+ enablePHP = true;
+ };
+}